form.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. @import "../colors";
  2. @import "../breakpoints";
  3. .customInput {
  4. color: $musare_color_primary_gray;
  5. display: block;
  6. margin-bottom: 16px;
  7. span {
  8. display: block;
  9. font-size: 12px;
  10. line-height: 16px;
  11. margin-left: 4px;
  12. margin-bottom: 5px;
  13. }
  14. > input, textarea {
  15. display: block;
  16. box-sizing: border-box;
  17. width: 100%;
  18. border: 1px solid $musare_color_primary_blue;
  19. font-size: 15px;
  20. line-height: 20px;
  21. padding: 10px;
  22. resize: none;
  23. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  24. &.has-validation-errors {
  25. border-color: $musare_color_primary_red;
  26. }
  27. }
  28. .radio-options {
  29. label {
  30. input[type="radio"] {
  31. border: 0;
  32. clip: rect(0 0 0 0);
  33. height: 1px;
  34. margin: -1px;
  35. overflow: hidden;
  36. padding: 0;
  37. position: absolute;
  38. width: 1px;
  39. }
  40. input[type="radio"] + span::before {
  41. content: '';
  42. display: inline-block;
  43. width: 16px;
  44. height: 16px;
  45. vertical-align: -4px;
  46. border-radius: 50px;
  47. border: 4px solid $musare_color_white;
  48. background-color: white;
  49. //box-shadow: 0 0 0 0.15em #000;
  50. margin-right: 16px;
  51. //transition: 0.5s ease all;
  52. }
  53. input[type="radio"]:checked + span::before {
  54. background: $musare_color_primary_blue;
  55. }
  56. /*input {
  57. float: left;
  58. }*/
  59. span {
  60. font-size: 15px;
  61. }
  62. }
  63. }
  64. ul {
  65. display: block;
  66. list-style-position: inside;
  67. color: $musare_color_primary_red;
  68. margin-top: 4px;
  69. font-size: 12px;
  70. line-height: 16px;
  71. }
  72. }
  73. @mixin forPlaceholder() {
  74. &::placeholder, &::-webkit-input-placeholder {
  75. @content;
  76. }
  77. &:-moz-placeholder, &::-moz-placeholder {
  78. @content;
  79. }
  80. &:-ms-input-placeholder, &::-ms-input-placeholder {
  81. @content;
  82. }
  83. }
  84. // TODO: Optimize this
  85. input[type=range] {
  86. height: 26px;
  87. -webkit-appearance: none;
  88. margin: 10px 0;
  89. width: 100%;
  90. }
  91. input[type=range]:focus {
  92. outline: none;
  93. }
  94. input[type=range]::-webkit-slider-runnable-track {
  95. width: 100%;
  96. height: 6px;
  97. cursor: pointer;
  98. animate: 0.2s;
  99. box-shadow: 0px 0px 0px #000000;
  100. background: #C4C4C4;
  101. border-radius: 0px;
  102. border: 0px solid #C4C4C4;
  103. }
  104. input[type=range]::-webkit-slider-thumb {
  105. box-shadow: 0px 0px 0px #000000;
  106. border: 0px solid #000000;
  107. height: 20px;
  108. width: 20px;
  109. border-radius: 50px;
  110. background: #2FBEFF;
  111. cursor: pointer;
  112. -webkit-appearance: none;
  113. margin-top: -7px;
  114. }
  115. input[type=range]:focus::-webkit-slider-runnable-track {
  116. background: #C4C4C4;
  117. }
  118. input[type=range]::-moz-range-track {
  119. width: 100%;
  120. height: 6px;
  121. cursor: pointer;
  122. animate: 0.2s;
  123. box-shadow: 0px 0px 0px #000000;
  124. background: #C4C4C4;
  125. border-radius: 0px;
  126. border: 0px solid #C4C4C4;
  127. }
  128. input[type=range]::-moz-range-thumb {
  129. box-shadow: 0px 0px 0px #000000;
  130. border: 0px solid #000000;
  131. height: 20px;
  132. width: 20px;
  133. border-radius: 50px;
  134. background: #2FBEFF;
  135. cursor: pointer;
  136. }
  137. input[type=range]::-ms-track {
  138. width: 100%;
  139. height: 6px;
  140. cursor: pointer;
  141. animate: 0.2s;
  142. background: transparent;
  143. border-color: transparent;
  144. color: transparent;
  145. }
  146. input[type=range]::-ms-fill-lower {
  147. background: #C4C4C4;
  148. border: 0px solid #C4C4C4;
  149. border-radius: 0px;
  150. box-shadow: 0px 0px 0px #000000;
  151. }
  152. input[type=range]::-ms-fill-upper {
  153. background: #C4C4C4;
  154. border: 0px solid #C4C4C4;
  155. border-radius: 0px;
  156. box-shadow: 0px 0px 0px #000000;
  157. }
  158. input[type=range]::-ms-thumb {
  159. margin-top: 1px;
  160. box-shadow: 0px 0px 0px #000000;
  161. border: 0px solid #000000;
  162. height: 20px;
  163. width: 20px;
  164. border-radius: 50px;
  165. background: #2FBEFF;
  166. cursor: pointer;
  167. }
  168. input[type=range]:focus::-ms-fill-lower {
  169. background: #C4C4C4;
  170. }
  171. input[type=range]:focus::-ms-fill-upper {
  172. background: #C4C4C4;
  173. }