_forms.scss 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. .form{
  2. section{
  3. &#body-wrapper{
  4. #custom-form{
  5. margin-top: 3rem;
  6. width: $item_content;
  7. @include grilles;
  8. .form-field{
  9. .form-data{
  10. .form-input-wrapper {
  11. position: relative;
  12. &:before{
  13. display: block;
  14. content: url(/user/themes/vocurations/images/etoile.svg);
  15. width: 5px;
  16. height: 5px;
  17. position: absolute;
  18. top: -17px;
  19. left: -10px;
  20. }
  21. }
  22. input{
  23. &::-moz-placeholder {
  24. opacity: 1;
  25. }
  26. }
  27. }
  28. align-self: center;
  29. &:nth-child(1){
  30. grid-column: 1 / 4;
  31. grid-row: 1;
  32. }
  33. &:nth-child(2){
  34. grid-column: 4 / 7;
  35. grid-row: 1;
  36. }
  37. &:nth-child(3){
  38. grid-column: 1 / 3;
  39. grid-row: 2;
  40. }
  41. &:nth-child(4){
  42. grid-column: 3 / 5;
  43. grid-row: 2;
  44. }
  45. &:nth-child(5){
  46. grid-column: 5 / 7;
  47. grid-row: 2;
  48. }
  49. &:nth-child(6){
  50. grid-column: 1 / 3;
  51. grid-row: 3;
  52. }
  53. &:nth-child(7){
  54. grid-column: 3 / 5;
  55. grid-row: 3;
  56. }
  57. &:nth-child(8){
  58. grid-column: 5 / 7;
  59. grid-row: 3;
  60. display: flex;
  61. position: relative;
  62. .form-data{
  63. .dropzone{
  64. position: absolute;
  65. min-height: 26px;
  66. width: 100%;
  67. left: 0;
  68. border:none;
  69. background: transparent;
  70. &::before{
  71. display: none;
  72. }
  73. &::after{
  74. position: absolute;
  75. display: inline-block;
  76. width: 1.2rem;
  77. height: 1.2rem;
  78. content: ' ';
  79. background: url('/user/themes/vocurations/images/Upload.svg');
  80. background-position: center;
  81. background-repeat: no-repeat;
  82. background-size: cover;
  83. right: -0px;
  84. top: 5px;
  85. }
  86. .dz-preview {
  87. width: 100%;
  88. position: absolute;
  89. left: 0;
  90. margin: 0;
  91. top: 0px;
  92. background: white;
  93. min-height: 23px;
  94. .dz-image{
  95. width: 100%;
  96. height: auto;
  97. background: white;
  98. }
  99. .dz-remove{
  100. z-index: 999;
  101. position: absolute;
  102. z-index: 999;
  103. right: 0%;
  104. top: 50%;
  105. width: 54px;
  106. height: 54px;
  107. margin-top: -27px;
  108. margin-right: -27px;
  109. color: black;
  110. background: white;
  111. }
  112. .dz-image{
  113. display: none;
  114. }
  115. .dz-details{
  116. display: inline-flex;
  117. padding: 0em 0em;
  118. opacity: 1;
  119. align-items: flex-end;
  120. & > div{
  121. font-size: 1.5rem;
  122. text-overflow: ellipsis;
  123. margin-bottom: 0;
  124. & > span{
  125. font-size: 1.5rem;
  126. display: flex;
  127. flex-wrap: nowrap;
  128. padding: 0 1rem 0 0;
  129. }
  130. }
  131. .dz-filename{
  132. overflow: hidden;
  133. }
  134. }
  135. .dz-error-message{
  136. opacity: 1;
  137. top: 120%;
  138. left: 0;
  139. }
  140. .dz-error-mark{
  141. display: none;
  142. }
  143. .dz-progress{
  144. height: 5px;
  145. width: 100%;
  146. margin-top: 0;
  147. margin-left: 0;
  148. left: 0;
  149. top: 110%;
  150. }
  151. .dz-success-mark{
  152. path{
  153. fill:green;
  154. }
  155. }
  156. }
  157. }
  158. }
  159. .dz-default{
  160. display: none;
  161. span{
  162. display: none;
  163. }
  164. }
  165. }
  166. &:nth-child(9){
  167. grid-column: 1 / 7;
  168. grid-row: 4;
  169. display: flex;
  170. align-items: center;
  171. .form-label{
  172. margin-right: 1rem;
  173. label{
  174. position: relative;
  175. display: block;
  176. width: 150px;
  177. &:before{
  178. display: block;
  179. content: url(/user/themes/vocurations/images/etoile.svg);
  180. width: 10px;
  181. height: 10px;
  182. position: absolute;
  183. top: -17px;
  184. left: -10px;
  185. }
  186. }
  187. }
  188. .form-data{
  189. @include flexbox;
  190. .radio{
  191. margin-right: 1rem;
  192. label{
  193. @include flexbox;
  194. flex-wrap: nowrap!important;
  195. align-items: center;
  196. input{
  197. margin-right: 10px;
  198. border: 1px solid black;
  199. position: relative;
  200. appearance: none;
  201. font-size: inherit;
  202. width: 20px;
  203. height: 20px;
  204. margin: 0;
  205. color: inherit;
  206. outline: none;
  207. transition: 300ms ease-out;
  208. vertical-align: baseline;
  209. &::after {
  210. content: ' ';
  211. display: block;
  212. text-align: center;
  213. width: 18px;
  214. height: 18px;
  215. }
  216. &:active {
  217. transform: scale(.6);
  218. }
  219. }
  220. input[type=radio]:checked::after {
  221. background: black;
  222. }
  223. }
  224. }
  225. }
  226. }
  227. &:nth-child(10){
  228. grid-column: 1 / 7;
  229. grid-row: 5/7;
  230. align-self: stretch;
  231. .form-label {
  232. display: none;
  233. }
  234. .form-data{
  235. height: 100%;
  236. }
  237. .form-textarea-wrapper {
  238. height: 100%;
  239. }
  240. textarea{
  241. padding: 0.5rem;
  242. border : 1px solid black;
  243. width: 100%;
  244. height: 100%;
  245. resize: none;
  246. }
  247. }
  248. &:nth-child(-n+7){
  249. .form-label{
  250. display:none
  251. }
  252. }
  253. .form-data{
  254. input{
  255. border: none;
  256. border-bottom: 1px solid black;
  257. width: 100%;
  258. }
  259. textarea::focus, input::focus {
  260. color: black;
  261. }
  262. }
  263. }
  264. .buttons{
  265. grid-column: 1 / 1;
  266. grid-row: 7;
  267. align-self: center;
  268. display: flex;
  269. button{
  270. border: none;
  271. background: white;
  272. }
  273. }
  274. }
  275. }
  276. }
  277. .toast-success{
  278. font-family: $Regular;
  279. display: inline-block;
  280. margin-left: 1rem;
  281. }
  282. }
  283. input{
  284. outline: none;
  285. }