default_form_powermail.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. .form {
  2. background: $color_white;
  3. color: $color_darkgrey;
  4. .col, .mb-3 {
  5. //position: relative;
  6. margin-bottom: 2rem !important;
  7. @media (max-width: 1024px) {
  8. flex: 1 0 100%;
  9. }
  10. }
  11. .powermail_legend {
  12. display: none;
  13. }
  14. .powermail_fieldwrap_formularabschicken {
  15. width: 100%;
  16. }
  17. .powermail_fieldwrap_loesensiedieaufgabe{
  18. .powermail_field{
  19. width: calc(90% - 200px);
  20. }
  21. }
  22. .powermail_fieldwrap_type_submit {
  23. flex: 0 0 auto;
  24. width: 100%;
  25. text-align: center;
  26. margin-bottom: 0 !important;
  27. }
  28. .powermail_fieldwrap {
  29. &.col-md-6 {
  30. &:nth-of-type(even) {
  31. padding-right: 0;
  32. @media (max-width: 1024px){
  33. padding: 0;
  34. }
  35. }
  36. &:nth-of-type(odd) {
  37. padding-left: 0;
  38. @media (max-width: 1024px){
  39. padding: 0;
  40. }
  41. }
  42. }
  43. &.col-md-12 {
  44. padding: 0;
  45. }
  46. }
  47. .powermail_fieldwrap_type_check{
  48. .powermail_field {
  49. padding-left: 10px;
  50. .checkbox {
  51. input{
  52. height: auto;
  53. opacity: 0;
  54. position: absolute;
  55. &:checked{
  56. + span:not(.required){
  57. &:before{
  58. content: "\F271";
  59. animation: effect 250ms ease-in;
  60. }
  61. }
  62. }
  63. }
  64. span:not(.required){
  65. &:before{
  66. content: "\F584";
  67. display: inline-block;
  68. font-family: bootstrap-icons !important;
  69. font-style: normal;
  70. font-weight: normal !important;
  71. font-variant: normal;
  72. text-transform: none;
  73. line-height: 1;
  74. vertical-align: -0.125em;
  75. -webkit-font-smoothing: antialiased;
  76. -moz-osx-font-smoothing: grayscale;
  77. margin-left: -10px;
  78. margin-right: 5px;
  79. }
  80. }
  81. &.parsley-error {
  82. input, span:not(.required) {
  83. &::before {
  84. color: $color_red;
  85. }
  86. }
  87. }
  88. }
  89. .parsley-errors-list {
  90. position: relative;
  91. right: inherit;
  92. left: -10px;
  93. top: 5px;
  94. }
  95. }
  96. }
  97. .input-container {
  98. position: relative;
  99. border-radius: 0;
  100. input, textarea {
  101. background-color: rgba($color_grey,0.10);
  102. border: 0;
  103. outline: none;
  104. transition: .2s ease-in-out;
  105. box-sizing: border-box;
  106. width: 100%;
  107. height: 50px;
  108. //font-size: 1rem;
  109. color: $color_basic;
  110. //font-weight: 700;
  111. border-radius: 0;
  112. padding: 0 15px;
  113. &:valid {
  114. + label {
  115. /*color: $darkergrey;
  116. font-size: 0.8rem;
  117. top: -35px;
  118. left: 0;
  119. pointer-events: none;*/
  120. }
  121. }
  122. &:focus {
  123. border-bottom: 1px solid $color_brand;
  124. + label {
  125. color: $color_basic;
  126. font-size: 0.8rem;
  127. top: -35px;
  128. left: 0;
  129. pointer-events: none;
  130. }
  131. }
  132. &.parsley-error {
  133. border: 1px solid $color_red;
  134. }
  135. }
  136. label {
  137. top: 0;
  138. left: 15px;
  139. right: 0;
  140. color: $color_basic;
  141. display: flex;
  142. align-items: center;
  143. position: absolute;
  144. //font-size: 1.25rem;
  145. font-weight: 300;
  146. cursor: text;
  147. transition: .2s ease-in-out;
  148. box-sizing: border-box;
  149. width: 100%;
  150. height: 50px;
  151. }
  152. textarea {
  153. padding-top: 13px;
  154. min-height: 150px;
  155. }
  156. }
  157. .headline {
  158. color: $color_white;
  159. }
  160. input, textarea {
  161. border-radius: 0;
  162. border: none;
  163. //width: 100%;
  164. }
  165. .powermail_fieldwrap_type_select {
  166. position: relative;
  167. float: left;
  168. select {
  169. width: 100%;
  170. background: #edf0f0;
  171. background-color: rgba($color_grey,0.10);
  172. color: $color_basic;
  173. font-weight: 300;
  174. padding-left: 15px;
  175. border: none;
  176. height: 50px;
  177. appearance: none;
  178. background-image: url(../img/midland-it-arrow-abstract-space.svg);
  179. background-repeat: no-repeat;
  180. background-position: right;
  181. background-size: 25px;
  182. &.parsley-error {
  183. border: 1px solid $color_red;
  184. }
  185. }
  186. label {
  187. // font-size: 0.8rem;
  188. // top: -20px;
  189. // position: absolute;
  190. }
  191. }
  192. .powermail_fieldwrap_type_file {
  193. position: relative;
  194. float: left;
  195. margin-top: 10px;
  196. label {
  197. font-size: 0.8rem;
  198. top: -20px;
  199. position: absolute;
  200. }
  201. }
  202. .button, input[type="submit"] {
  203. position: relative;
  204. float: right;
  205. float: none;
  206. color: $color_white;
  207. background: $color_brand;
  208. width: inherit;
  209. padding: 10px 15px;
  210. text-decoration: none;
  211. margin-top: 1rem;
  212. border: none;
  213. border-radius: 0;
  214. @include fade();
  215. &:hover {
  216. background: $color_white;
  217. color: $color_red;
  218. }
  219. }
  220. .powermail_captcha {
  221. padding-left: 200px !important;
  222. }
  223. .powermail_captchaimage {
  224. position: absolute;
  225. right: 0;
  226. height: 50px;
  227. @media (max-width: 768px) {
  228. position: relative;
  229. float: left;
  230. right: inherit;
  231. margin-top: 15px;
  232. }
  233. }
  234. .parsley-errors-list {
  235. position: absolute;
  236. right: 5px;
  237. top: 5px;
  238. top: -20px;
  239. color: $color_red;
  240. li {
  241. list-style: none;
  242. font-size: .8rem;
  243. }
  244. }
  245. h3{
  246. display: none;
  247. }
  248. // form{
  249. // position: relative;
  250. // float: left;
  251. // width: 100%;
  252. // padding-top: 0;
  253. // padding-bottom: 0;
  254. // }
  255. &.section{
  256. padding-top: 3rem;
  257. .h1{
  258. margin-bottom: 1rem;
  259. }
  260. }
  261. }
  262. @keyframes effect{
  263. 0%{transform: scale(0);}
  264. 25%{transform: scale(1.1);}
  265. 75%{transform: scale(1.2);}
  266. 100%{transform: scale(1);}
  267. }