_contact-form.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. /* Contact form */
  2. .select-style {
  3. select {
  4. background-image: url("../images/contact-form-down-arrow.jpg");
  5. background-repeat: no-repeat;
  6. background-position: top 25px right 30px;
  7. cursor: pointer;
  8. -webkit-appearance: none;
  9. background-color: transparent;
  10. }
  11. }
  12. .terms-condition-box {
  13. label {
  14. display: block;
  15. }
  16. input[type="checkbox"] {
  17. opacity: 0;
  18. visibility: hidden;
  19. position: absolute;
  20. top: 4px;
  21. left: 0;
  22. &:checked {
  23. + .box {
  24. &:after {
  25. display: block;
  26. }
  27. }
  28. }
  29. &.is-invalid {
  30. + .box {
  31. &:before {
  32. border-color: #dc3545;
  33. }
  34. }
  35. }
  36. }
  37. .box {
  38. position: relative;
  39. padding-left: 30px;
  40. cursor: pointer;
  41. display:inline-block;
  42. &:before {
  43. content: '';
  44. width: 20px;
  45. height: 20px;
  46. background-color: transparent;
  47. border: 1px solid var(--extra-medium-gray);
  48. position: absolute;
  49. top: 5px;
  50. left: 0;
  51. @include prefix(border-radius, 4px, webkit);
  52. }
  53. &:after {
  54. position: absolute;
  55. left: 7px;
  56. top: 9px;
  57. content: '';
  58. width: 6px;
  59. height: 10px;
  60. display: none;
  61. border: solid var(--dark-gray);
  62. border-width: 0 2px 2px 0;
  63. -webkit-transform: rotate(45deg);
  64. -ms-transform: rotate(45deg);
  65. transform: rotate(45deg);
  66. }
  67. }
  68. }
  69. /* Contact form style 01 */
  70. .contact-form-style-01 {
  71. input, textarea {
  72. padding-left: 55px;
  73. }
  74. .form-group {
  75. .form-icon {
  76. position: absolute;
  77. top: 50%;
  78. @include prefix(transform, translateY(-50%), webkit);
  79. padding-top: 2px;
  80. left: 25px;
  81. }
  82. &.form-textarea {
  83. .form-icon {
  84. top: 12px;
  85. @include prefix(transform, translateY(0), webkit);
  86. }
  87. }
  88. }
  89. }
  90. /* Contact form style 03 */
  91. .contact-form-style-03 {
  92. input, textarea {
  93. outline: none;
  94. border: none;
  95. border-bottom: 1px solid;
  96. background: transparent;
  97. }
  98. select {
  99. outline: none;
  100. border: none;
  101. border-bottom: 1px solid;
  102. }
  103. input, select, textarea, .form-control {
  104. &:focus {
  105. border: 0;
  106. border-bottom: 1px solid #c2c2c2;
  107. }
  108. }
  109. textarea {
  110. resize: none;
  111. }
  112. .form-group {
  113. .form-icon {
  114. position: absolute;
  115. top: 50%;
  116. right: 5px;
  117. @include prefix(transform, translateY(-50%), webkit);
  118. }
  119. &.form-textarea {
  120. .form-icon {
  121. top: 10px;
  122. @include prefix(transform, translateY(0), webkit);
  123. }
  124. }
  125. }
  126. .form-control, .form-control.is-invalid, .was-validated .form-control:invalid {
  127. background-position: right 35px center !important;
  128. }
  129. }
  130. /* Contact form style 06 */
  131. .contact-form-style-06 {
  132. input, textarea {
  133. color: var(--white);
  134. &:focus {
  135. color: var(--white);
  136. }
  137. }
  138. input::placeholder, textarea::placeholder {
  139. color: var(--light-medium-gray);
  140. }
  141. .select-style {
  142. select {
  143. color: var(--light-medium-gray);
  144. background-image: url("../images/contact-form-arrow-white.png");
  145. background-position: top 25px right 20px;
  146. padding-right: 45px;
  147. option {
  148. color: var(--dark-gray);
  149. }
  150. }
  151. }
  152. }
  153. /* Contact form style 07 */
  154. .contact-form-style-07 {
  155. input, textarea {
  156. outline: none;
  157. border: none;
  158. border-bottom: 1px solid;
  159. background: transparent;
  160. }
  161. select {
  162. outline: none;
  163. border: none;
  164. border-bottom: 1px solid;
  165. }
  166. input, select, textarea, .form-control {
  167. &:focus {
  168. border: 0;
  169. border-bottom: 1px solid #c2c2c2;
  170. }
  171. }
  172. textarea {
  173. resize: none;
  174. }
  175. .form-group {
  176. .form-icon {
  177. position: absolute;
  178. top: 50%;
  179. right: 5px;
  180. @include prefix(transform, translateY(-50%), webkit);
  181. }
  182. &.form-textarea {
  183. .form-icon {
  184. top: 10px;
  185. @include prefix(transform, translateY(0), webkit);
  186. }
  187. }
  188. }
  189. .form-control, .form-control.is-invalid, .was-validated .form-control:invalid {
  190. background-position: right 35px center !important;
  191. }
  192. }