_forms.scss 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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. span{
  161. display: none;
  162. }
  163. }
  164. }
  165. &:nth-child(9){
  166. grid-column: 1 / 7;
  167. grid-row: 4;
  168. display: flex;
  169. align-items: center;
  170. .form-label{
  171. margin-right: 1rem;
  172. label{
  173. position: relative;
  174. display: block;
  175. width: 150px;
  176. &:before{
  177. display: block;
  178. content: url(/user/themes/vocurations/images/etoile.svg);
  179. width: 10px;
  180. height: 10px;
  181. position: absolute;
  182. top: -17px;
  183. left: -10px;
  184. }
  185. }
  186. }
  187. .form-data{
  188. @include flexbox;
  189. .radio{
  190. margin-right: 1rem;
  191. label{
  192. @include flexbox;
  193. flex-wrap: nowrap!important;
  194. align-items: center;
  195. input{
  196. margin-right: 10px;
  197. border: 1px solid black;
  198. position: relative;
  199. appearance: none;
  200. font-size: inherit;
  201. width: 20px;
  202. height: 20px;
  203. margin: 0;
  204. color: inherit;
  205. outline: none;
  206. transition: 300ms ease-out;
  207. vertical-align: baseline;
  208. &::after {
  209. content: ' ';
  210. display: block;
  211. text-align: center;
  212. width: 18px;
  213. height: 18px;
  214. }
  215. &:active {
  216. transform: scale(.6);
  217. }
  218. }
  219. input[type=radio]:checked::after {
  220. background: black;
  221. }
  222. }
  223. }
  224. }
  225. }
  226. &:nth-child(10){
  227. grid-column: 1 / 7;
  228. grid-row: 5/7;
  229. align-self: stretch;
  230. .form-label {
  231. display: none;
  232. }
  233. .form-data{
  234. height: 100%;
  235. }
  236. .form-textarea-wrapper {
  237. height: 100%;
  238. }
  239. textarea{
  240. padding: 0.5rem;
  241. border : 1px solid black;
  242. width: 100%;
  243. height: 100%;
  244. resize: none;
  245. }
  246. }
  247. &:nth-child(-n+7){
  248. .form-label{
  249. display:none
  250. }
  251. }
  252. .form-data{
  253. input{
  254. border: none;
  255. border-bottom: 1px solid black;
  256. width: 100%;
  257. }
  258. textarea::focus, input::focus {
  259. color: black;
  260. }
  261. }
  262. }
  263. .buttons{
  264. grid-column: 1 / 1;
  265. grid-row: 7;
  266. align-self: center;
  267. display: flex;
  268. button{
  269. border: none;
  270. background: white;
  271. }
  272. }
  273. }
  274. }
  275. }
  276. .toast-success{
  277. font-family: $Regular;
  278. display: inline-block;
  279. margin-left: 1rem;
  280. }
  281. }