default_form_formframework.scss 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. .ce.ce-form_formframework {
  2. margin-top: 2rem;
  3. h2, .h2 {
  4. padding-left: 0 !important;
  5. display: none;
  6. }
  7. .input,
  8. [class^='captcha'],
  9. [class*='captcha'] {
  10. margin-bottom: 2rem;
  11. flex: 0 0 auto;
  12. width: 50%;
  13. position: relative;
  14. border-radius: 0;
  15. @media (max-width: 767.98px){
  16. width: 100%;
  17. }
  18. &:nth-of-type(even) {
  19. padding-right: 0;
  20. @media (max-width: 767.98px){
  21. padding-left: 0;
  22. }
  23. @media (min-width: 768px){
  24. label {
  25. left: 30px;
  26. &.input-has-value {
  27. left: 15px !important;
  28. }
  29. }
  30. input, textarea, select {
  31. &:focus, &:not(:empty) {
  32. + label {
  33. left: 15px;
  34. }
  35. }
  36. }
  37. &[class^='singleselect'],
  38. &[class*='singleselect'] {
  39. &::after {
  40. right: 1rem;
  41. }
  42. }
  43. .error {
  44. right: 0;
  45. }
  46. }
  47. }
  48. &:nth-of-type(odd) {
  49. padding-left: 0;
  50. @media (max-width: 767.98px){
  51. padding: 0;
  52. }
  53. }
  54. &[class^='textarea'],
  55. &[class*='textarea'],
  56. &[class^='fileupload'],
  57. &[class*='fileupload'],
  58. &.checkbox {
  59. width: 100%;
  60. padding-right: 0;
  61. padding-left: 0;
  62. // margin-bottom: 0;
  63. }
  64. &[class^='textarea'],
  65. &[class*='textarea'] {
  66. & + .input {
  67. margin-top: -10px;
  68. }
  69. }
  70. &[class^='fileupload'],
  71. &[class*='fileupload'] {
  72. label {
  73. color: $color_brand_dark;
  74. font-size: 0.8rem;
  75. top: -35px;
  76. left: 0;
  77. pointer-events: none;
  78. }
  79. input {
  80. padding-top: 8px;
  81. }
  82. }
  83. label {
  84. top: 0;
  85. left: 15px;
  86. right: 0;
  87. color: $color_basic;;
  88. display: flex;
  89. align-items: center;
  90. position: absolute;
  91. font-weight: 300;
  92. cursor: text;
  93. transition: .2s ease-in-out;
  94. box-sizing: border-box;
  95. width: 100%;
  96. height: 50px;
  97. }
  98. input, textarea {
  99. background-color: rgba($color_basic,0.15);
  100. border: 0;
  101. outline: none;
  102. transition: .2s ease-in-out;
  103. box-sizing: border-box;
  104. width: 100%;
  105. height: 50px;
  106. font-size: 1rem;
  107. border-radius: 0;
  108. padding: 0 15px;
  109. }
  110. select {
  111. width: 100%;
  112. background-color: rgba($color_basic,0.15);
  113. font-weight: 300;
  114. padding-left: 15px;
  115. border: none;
  116. height: 50px;
  117. appearance: none;
  118. }
  119. textarea {
  120. padding-top: 13px;
  121. min-height: 150px;
  122. }
  123. input, textarea, select {
  124. color: $color_basic;
  125. font-weight: 300;
  126. &:focus {
  127. border-bottom: 1px solid $color_brand;
  128. + label {
  129. color: $color_brand_dark;
  130. font-size: 0.8rem;
  131. top: -35px;
  132. left: 0;
  133. pointer-events: none;
  134. }
  135. }
  136. &.error,
  137. &.f3-form-error {
  138. border: 1px solid $color_red;
  139. }
  140. &:not(:empty) {
  141. + label {
  142. color: $color_brand_dark;
  143. font-size: 0.8rem;
  144. top: -35px;
  145. left: 0;
  146. pointer-events: none;
  147. }
  148. }
  149. &.parsley-error {
  150. border: 1px solid $color_red;
  151. }
  152. }
  153. label.input-has-value {
  154. //color: $color_brand_dark;
  155. font-size: 0.8rem;
  156. top: -35px;
  157. left: 0;
  158. pointer-events: none;
  159. }
  160. &[class^='singleselect'],
  161. &[class*='singleselect'] {
  162. &::after {
  163. @include icon();
  164. content: "\f282";
  165. position: absolute;
  166. right: calc(1rem + 15px);
  167. top: 1rem;
  168. pointer-events: none;
  169. @media (max-width: 767.98px){
  170. right: 1rem;
  171. }
  172. }
  173. }
  174. &[class^='checkbox'],
  175. &[class*='checkbox'],
  176. &[class^='linkedcheckbox'],
  177. &[class*='linkedcheckbox'] {
  178. padding-left: 10px;
  179. float: left;
  180. margin-top: .5rem;
  181. margin-bottom: .5rem;
  182. @media (max-width: 767.98px){
  183. margin-top: 1rem;
  184. margin-bottom: 1rem;
  185. }
  186. .checkbox, .form-check {
  187. padding-left: 0;
  188. label {
  189. left: 0;
  190. position: relative;
  191. height: auto;
  192. }
  193. input{
  194. height: auto;
  195. opacity: 0;
  196. position: absolute;
  197. &:checked{
  198. + span:not(.required){
  199. &:before{
  200. content: "\F271";
  201. animation: effect 250ms ease-in;
  202. }
  203. }
  204. }
  205. }
  206. span:not(.required){
  207. &:before{
  208. content: "\F584";
  209. display: inline-block;
  210. @include icon;
  211. margin-left: -10px;
  212. margin-right: 5px;
  213. color: $color_brand;
  214. }
  215. a {
  216. position: relative;
  217. z-index: 10000;
  218. }
  219. }
  220. .parsley-error {
  221. &::before {
  222. content: none !important;
  223. }
  224. }
  225. }
  226. .parsley-errors-list {
  227. position: relative;
  228. right: inherit;
  229. left: -10px;
  230. top: 5px;
  231. }
  232. }
  233. .error {
  234. position: absolute;
  235. right: 15px;
  236. font-size: 0.8rem;
  237. top: -20px;
  238. pointer-events: none;
  239. color: $color_red;
  240. @media (max-width: 767.98px){
  241. right: 0;
  242. }
  243. }
  244. .captcha {
  245. position: absolute;
  246. top: 0;
  247. padding-top: 0;
  248. margin: 0;
  249. }
  250. }
  251. [class^='captcha'],
  252. [class*='captcha'] {
  253. width: 100%;
  254. padding-top: 70px;
  255. padding-left: 0;
  256. margin-top: .75rem;
  257. margin-bottom: 0;
  258. label {
  259. top: 70px;
  260. left: 15px !important;
  261. }
  262. input:focus + label,
  263. label.input-has-value,
  264. &:nth-of-type(even) label.input-has-value {
  265. top: calc(-35px + 70px);
  266. left: 0 !important;
  267. }
  268. }
  269. button,
  270. .btn-default {
  271. border: none !important;
  272. font-weight: 300;
  273. @include fade();
  274. &:hover {
  275. background: $color_brand;
  276. color: $color_white !important;
  277. }
  278. }
  279. }
  280. @keyframes effect{
  281. 0%{transform: scale(0);}
  282. 25%{transform: scale(1.1);}
  283. 75%{transform: scale(1.2);}
  284. 100%{transform: scale(1);}
  285. }