You are here

form-controls.css in Open Social 8.5

@charset "UTF-8";
.form-control {
  display: block;
  width: 100%;
  max-width: 23rem;
  height: 38px;
  padding: 6px 12px;
  font-size: inherit;
  line-height: 1.5;
  background-image: none;
  -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
}

.form-control::-moz-placeholder {
  opacity: 1;
}

.form-control::-ms-expand {
  border: 0;
  background-color: transparent;
}

.form-control:disabled,
fieldset[disabled] .form-control,
.form-disabled .form-control {
  cursor: not-allowed;
  color: rgba(0, 0, 0, 0.26);
}

.form-control--autogrow {
  resize: none;
  min-height: 38px;
  overflow: hidden;
  max-width: none;
}

textarea.form-control {
  height: auto;
}

input[type="search"] {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

input[type="radio"],
input[type="checkbox"] {
  margin: 4px 0 0;
  margin-top: 1px \9;
  line-height: normal;
}

input[type="file"] {
  display: block;
}

select[multiple],
select[size] {
  height: auto;
}

input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

input[type="search"] {
  -webkit-appearance: none;
}

.data-policy-edit-form .form-textarea {
  max-width: 100%;
}

.radio,
.checkbox {
  position: relative;
  display: block;
  margin-bottom: 5px;
}

.radio + .radio,
.checkbox + .checkbox {
  margin-top: -5px;
}

/* Remove default Radio Buttons */
[type="radio"]:not(:checked),
[type="radio"]:checked,
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-no-label.checkbox [type="radio"], .form-no-label.checkbox [type="checkbox"] {
  opacity: 1;
  left: 0;
  margin: 0;
  position: static;
}

.checkbox label,
.radio label {
  font-weight: 300;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  display: inline-block;
  line-height: 21px;
  font-size: 0.875rem;
  -webkit-transition: .28s ease;
  transition: .28s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.radio label:before,
.radio label:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  margin: 2px;
  width: 16px;
  height: 16px;
  z-index: 0;
  -webkit-transition: .28s ease;
  transition: .28s ease;
}

/* Unchecked styles */
[type="radio"]:not(:checked) + label:before {
  border-radius: 50%;
  border: 2px solid #555555;
}

[type="radio"]:not(:checked) + label:after {
  border-radius: 50%;
  border: 2px solid #555555;
  z-index: -1;
  -webkit-transform: scale(0);
          transform: scale(0);
}

[type="radio"]:checked + label:before {
  border-radius: 50%;
}

[type="radio"]:checked + label:after {
  border-radius: 50%;
  z-index: 0;
  -webkit-transform: scale(0.5);
          transform: scale(0.5);
}

/* Disabled style */
[type="radio"]:disabled + label:before,
[type="radio"]:disabled + label:before {
  background-color: transparent;
}

[type="radio"]:disabled:checked + label:before {
  border: 2px solid rgba(0, 0, 0, 0.26);
}

[type="radio"]:disabled + label {
  color: rgba(0, 0, 0, 0.26);
  cursor: not-allowed;
}

[type="radio"]:disabled:not(:checked) + label:before {
  border-color: rgba(0, 0, 0, 0.26);
}

[type="radio"]:disabled:checked + label:after {
  background-color: rgba(0, 0, 0, 0.26);
  border: none;
  background-color: rgba(0, 0, 0, 0.26);
}

[type="checkbox"] + label:after {
  border-radius: 2px;
}

[type="checkbox"] + label:before,
[type="checkbox"] + label:after {
  content: '';
  left: 0;
  position: absolute;
  /* .1s delay is for check animation */
  -webkit-transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
  transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
  z-index: 1;
}

[type="checkbox"]:not(:checked) + label:before {
  width: 0;
  height: 0;
  border: 3px solid transparent;
  left: 6px;
  top: 10px;
  -webkit-transform: rotateZ(37deg);
          transform: rotateZ(37deg);
  -webkit-transform-origin: 20% 40%;
  transform-origin: 100% 100%;
}

[type="checkbox"]:not(:checked) + label:after {
  height: 20px;
  width: 20px;
  background-color: transparent;
  border: 2px solid #555555;
  top: 0px;
  z-index: 0;
}

[type="checkbox"]:checked + label:before {
  top: 0;
  left: 1px;
  width: 8px;
  height: 13px;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  -webkit-transform: rotateZ(37deg);
          transform: rotateZ(37deg);
  margin-top: 2px;
  -webkit-transition: .2s;
  transition: .2s;
  -webkit-transform-origin: 100% 100%;
          transform-origin: 100% 100%;
}

[type="checkbox"]:checked + label:after {
  top: 0px;
  width: 20px;
  height: 20px;
  z-index: 0;
}

[type="checkbox"].tabbed:focus + label:after {
  border-radius: 2px;
  border-color: #555555;
  background-color: rgba(0, 0, 0, 0.1);
}

[type="checkbox"].tabbed:checked:focus + label:after {
  border-radius: 2px;
}

[type="checkbox"]:disabled + label {
  color: rgba(0, 0, 0, 0.26);
  cursor: not-allowed;
}

[type="checkbox"]:disabled:not(:checked) + label:before {
  background-color: transparent;
  border: 2px solid transparent;
}

[type="checkbox"]:disabled:not(:checked) + label:after {
  border-color: transparent;
  background-color: #BDBDBD;
}

[type="checkbox"]:disabled:checked + label:before {
  background-color: transparent;
}

[type="checkbox"]:disabled:checked + label:after {
  background-color: #BDBDBD;
  border-color: #BDBDBD;
}

.form-inline {
  margin-bottom: 1rem;
}

.switch * {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  cursor: pointer;
}

.switch {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
}

.switch__label {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
}

.switch__options {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 150px;
          flex: 1 0 150px;
  text-align: right;
}

.switch input[type=checkbox] {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch label {
  font-weight: 300;
}

.switch .lever {
  content: "";
  display: inline-block;
  position: relative;
  width: 40px;
  height: 15px;
  background-color: #777777;
  border-radius: 15px;
  margin-right: 10px;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
  vertical-align: middle;
  margin: 0 16px;
}

.switch .lever:after {
  -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
          box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  content: "";
  position: absolute;
  display: inline-block;
  width: 21px;
  height: 21px;
  background-color: #f3f3f3;
  border-radius: 21px;
  left: -5px;
  top: -3px;
  -webkit-transition: left 0.3s ease, background .3s ease, -webkit-box-shadow 0.1s ease;
  transition: left 0.3s ease, background .3s ease, -webkit-box-shadow 0.1s ease;
  transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease;
  transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease, -webkit-box-shadow 0.1s ease;
}

input[type=checkbox]:not(:disabled) ~ .lever:active:after {
  -webkit-box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.08);
          box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.08);
}

.switch input[type=checkbox]:checked + .lever:after {
  left: 24px;
}

.switch input[type=checkbox][disabled] + .lever {
  cursor: default;
}

.switch input[type=checkbox][disabled] + .lever:after,
.switch input[type=checkbox][disabled]:checked + .lever:after {
  background-color: #BDBDBD;
}

[type='range'] {
  -webkit-appearance: none;
  width: 100%;
  border: 0;
}

[type='range']:focus {
  outline: 0;
}

[type='range']:focus::-webkit-slider-thumb {
  -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
          box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
}

[type='range']:focus::-moz-range-thumb {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
}

[type='range']:focus::-ms-thumb {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
}

[type='range']::-webkit-slider-runnable-track {
  cursor: pointer;
  height: 8px;
  -webkit-transition: all .2s ease;
  transition: all .2s ease;
  width: 100%;
  background: #e6e6e6;
  border: 2px solid #e6e6e6;
  border-radius: 5px;
}

[type='range']::-webkit-slider-thumb {
  -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
          box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  cursor: pointer;
  height: 24px;
  width: 24px;
  -webkit-appearance: none;
  margin-top: -10px;
}

[type='range']::-moz-range-track {
  cursor: pointer;
  height: 8px;
  -webkit-transition: all .2s ease;
  transition: all .2s ease;
  width: 100%;
  background: #e6e6e6;
  border: 2px solid #e6e6e6;
  border-radius: 5px;
}

[type='range']::-moz-range-thumb {
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  cursor: pointer;
  height: 24px;
  width: 24px;
}

[type='range']::-ms-track {
  cursor: pointer;
  height: 8px;
  -webkit-transition: all .2s ease;
  transition: all .2s ease;
  width: 100%;
  background: transparent;
  border-color: transparent;
  border-width: 12px 0;
  color: transparent;
}

[type='range']::-ms-fill-lower {
  background: #d9d9d9;
  border: 2px solid #e6e6e6;
  border-radius: 10px;
}

[type='range']::-ms-fill-upper {
  background: #e6e6e6;
  border: 2px solid #e6e6e6;
  border-radius: 10px;
}

[type='range']::-ms-thumb {
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  cursor: pointer;
  height: 24px;
  width: 24px;
  margin-top: 0;
}

.select-wrapper {
  position: relative;
  width: 100%;
  max-width: 23rem;
}

.form-inline .select-wrapper {
  width: auto;
}

.input-group .select-wrapper {
  display: table-cell;
}

.select-wrapper select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  line-height: 1;
  padding-right: 30px;
}

.select-wrapper select:disabled {
  color: rgba(0, 0, 0, 0.26);
}

.select-wrapper:after {
  content: '▾';
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  margin-top: -.5em;
  padding-right: 12px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 2;
}

.form-disabled .select-wrapper::after {
  color: #777777;
}

@media (min-width: 600px) {
  .form-inline .radio input[type="radio"],
  .form-inline .checkbox input[type="checkbox"] {
    position: absolute;
  }
  .form-inline .radio label,
  .form-inline .checkbox label {
    padding-left: 22px;
    margin-right: 25px;
  }
}

@media (min-width: 900px) {
  .form-control {
    font-size: 16px;
  }
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .form-control {
    font-size: 16px;
  }
  input[type="date"].form-control,
  input[type="time"].form-control,
  input[type="datetime-local"].form-control,
  input[type="month"].form-control {
    line-height: 24px;
    background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+) no-repeat 95% 50%;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
  }
  input[type="date"].form-control:focus,
  input[type="time"].form-control:focus,
  input[type="datetime-local"].form-control:focus,
  input[type="month"].form-control:focus {
    background: inherit;
  }
}

File

themes/socialbase/assets/css/form-controls.css
View source
  1. @charset "UTF-8";
  2. .form-control {
  3. display: block;
  4. width: 100%;
  5. max-width: 23rem;
  6. height: 38px;
  7. padding: 6px 12px;
  8. font-size: inherit;
  9. line-height: 1.5;
  10. background-image: none;
  11. -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  12. transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  13. transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  14. transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  15. }
  16. .form-control::-moz-placeholder {
  17. opacity: 1;
  18. }
  19. .form-control::-ms-expand {
  20. border: 0;
  21. background-color: transparent;
  22. }
  23. .form-control:disabled,
  24. fieldset[disabled] .form-control,
  25. .form-disabled .form-control {
  26. cursor: not-allowed;
  27. color: rgba(0, 0, 0, 0.26);
  28. }
  29. .form-control--autogrow {
  30. resize: none;
  31. min-height: 38px;
  32. overflow: hidden;
  33. max-width: none;
  34. }
  35. textarea.form-control {
  36. height: auto;
  37. }
  38. input[type="search"] {
  39. -webkit-box-sizing: border-box;
  40. box-sizing: border-box;
  41. }
  42. input[type="radio"],
  43. input[type="checkbox"] {
  44. margin: 4px 0 0;
  45. margin-top: 1px \9;
  46. line-height: normal;
  47. }
  48. input[type="file"] {
  49. display: block;
  50. }
  51. select[multiple],
  52. select[size] {
  53. height: auto;
  54. }
  55. input[type="file"]:focus,
  56. input[type="radio"]:focus,
  57. input[type="checkbox"]:focus {
  58. outline: 5px auto -webkit-focus-ring-color;
  59. outline-offset: -2px;
  60. }
  61. input[type="search"] {
  62. -webkit-appearance: none;
  63. }
  64. .data-policy-edit-form .form-textarea {
  65. max-width: 100%;
  66. }
  67. .radio,
  68. .checkbox {
  69. position: relative;
  70. display: block;
  71. margin-bottom: 5px;
  72. }
  73. .radio + .radio,
  74. .checkbox + .checkbox {
  75. margin-top: -5px;
  76. }
  77. /* Remove default Radio Buttons */
  78. [type="radio"]:not(:checked),
  79. [type="radio"]:checked,
  80. [type="checkbox"]:not(:checked),
  81. [type="checkbox"]:checked {
  82. position: absolute;
  83. left: -9999px;
  84. opacity: 0;
  85. }
  86. .form-no-label.checkbox [type="radio"], .form-no-label.checkbox [type="checkbox"] {
  87. opacity: 1;
  88. left: 0;
  89. margin: 0;
  90. position: static;
  91. }
  92. .checkbox label,
  93. .radio label {
  94. font-weight: 300;
  95. position: relative;
  96. padding-left: 25px;
  97. cursor: pointer;
  98. display: inline-block;
  99. line-height: 21px;
  100. font-size: 0.875rem;
  101. -webkit-transition: .28s ease;
  102. transition: .28s ease;
  103. -webkit-user-select: none;
  104. -moz-user-select: none;
  105. -ms-user-select: none;
  106. user-select: none;
  107. }
  108. .radio label:before,
  109. .radio label:after {
  110. content: '';
  111. position: absolute;
  112. left: 0;
  113. top: 0;
  114. margin: 2px;
  115. width: 16px;
  116. height: 16px;
  117. z-index: 0;
  118. -webkit-transition: .28s ease;
  119. transition: .28s ease;
  120. }
  121. /* Unchecked styles */
  122. [type="radio"]:not(:checked) + label:before {
  123. border-radius: 50%;
  124. border: 2px solid #555555;
  125. }
  126. [type="radio"]:not(:checked) + label:after {
  127. border-radius: 50%;
  128. border: 2px solid #555555;
  129. z-index: -1;
  130. -webkit-transform: scale(0);
  131. transform: scale(0);
  132. }
  133. [type="radio"]:checked + label:before {
  134. border-radius: 50%;
  135. }
  136. [type="radio"]:checked + label:after {
  137. border-radius: 50%;
  138. z-index: 0;
  139. -webkit-transform: scale(0.5);
  140. transform: scale(0.5);
  141. }
  142. /* Disabled style */
  143. [type="radio"]:disabled + label:before,
  144. [type="radio"]:disabled + label:before {
  145. background-color: transparent;
  146. }
  147. [type="radio"]:disabled:checked + label:before {
  148. border: 2px solid rgba(0, 0, 0, 0.26);
  149. }
  150. [type="radio"]:disabled + label {
  151. color: rgba(0, 0, 0, 0.26);
  152. cursor: not-allowed;
  153. }
  154. [type="radio"]:disabled:not(:checked) + label:before {
  155. border-color: rgba(0, 0, 0, 0.26);
  156. }
  157. [type="radio"]:disabled:checked + label:after {
  158. background-color: rgba(0, 0, 0, 0.26);
  159. border: none;
  160. background-color: rgba(0, 0, 0, 0.26);
  161. }
  162. [type="checkbox"] + label:after {
  163. border-radius: 2px;
  164. }
  165. [type="checkbox"] + label:before,
  166. [type="checkbox"] + label:after {
  167. content: '';
  168. left: 0;
  169. position: absolute;
  170. /* .1s delay is for check animation */
  171. -webkit-transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
  172. transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
  173. z-index: 1;
  174. }
  175. [type="checkbox"]:not(:checked) + label:before {
  176. width: 0;
  177. height: 0;
  178. border: 3px solid transparent;
  179. left: 6px;
  180. top: 10px;
  181. -webkit-transform: rotateZ(37deg);
  182. transform: rotateZ(37deg);
  183. -webkit-transform-origin: 20% 40%;
  184. transform-origin: 100% 100%;
  185. }
  186. [type="checkbox"]:not(:checked) + label:after {
  187. height: 20px;
  188. width: 20px;
  189. background-color: transparent;
  190. border: 2px solid #555555;
  191. top: 0px;
  192. z-index: 0;
  193. }
  194. [type="checkbox"]:checked + label:before {
  195. top: 0;
  196. left: 1px;
  197. width: 8px;
  198. height: 13px;
  199. border-top: 2px solid transparent;
  200. border-left: 2px solid transparent;
  201. border-right: 2px solid white;
  202. border-bottom: 2px solid white;
  203. -webkit-transform: rotateZ(37deg);
  204. transform: rotateZ(37deg);
  205. margin-top: 2px;
  206. -webkit-transition: .2s;
  207. transition: .2s;
  208. -webkit-transform-origin: 100% 100%;
  209. transform-origin: 100% 100%;
  210. }
  211. [type="checkbox"]:checked + label:after {
  212. top: 0px;
  213. width: 20px;
  214. height: 20px;
  215. z-index: 0;
  216. }
  217. [type="checkbox"].tabbed:focus + label:after {
  218. border-radius: 2px;
  219. border-color: #555555;
  220. background-color: rgba(0, 0, 0, 0.1);
  221. }
  222. [type="checkbox"].tabbed:checked:focus + label:after {
  223. border-radius: 2px;
  224. }
  225. [type="checkbox"]:disabled + label {
  226. color: rgba(0, 0, 0, 0.26);
  227. cursor: not-allowed;
  228. }
  229. [type="checkbox"]:disabled:not(:checked) + label:before {
  230. background-color: transparent;
  231. border: 2px solid transparent;
  232. }
  233. [type="checkbox"]:disabled:not(:checked) + label:after {
  234. border-color: transparent;
  235. background-color: #BDBDBD;
  236. }
  237. [type="checkbox"]:disabled:checked + label:before {
  238. background-color: transparent;
  239. }
  240. [type="checkbox"]:disabled:checked + label:after {
  241. background-color: #BDBDBD;
  242. border-color: #BDBDBD;
  243. }
  244. .form-inline {
  245. margin-bottom: 1rem;
  246. }
  247. .switch * {
  248. -webkit-user-select: none;
  249. -moz-user-select: none;
  250. -ms-user-select: none;
  251. user-select: none;
  252. cursor: pointer;
  253. }
  254. .switch {
  255. display: -webkit-box;
  256. display: -ms-flexbox;
  257. display: flex;
  258. width: 100%;
  259. }
  260. .switch__label {
  261. -webkit-box-flex: 1;
  262. -ms-flex: 1 1 auto;
  263. flex: 1 1 auto;
  264. }
  265. .switch__options {
  266. -webkit-box-flex: 1;
  267. -ms-flex: 1 0 150px;
  268. flex: 1 0 150px;
  269. text-align: right;
  270. }
  271. .switch input[type=checkbox] {
  272. opacity: 0;
  273. width: 0;
  274. height: 0;
  275. }
  276. .switch label {
  277. font-weight: 300;
  278. }
  279. .switch .lever {
  280. content: "";
  281. display: inline-block;
  282. position: relative;
  283. width: 40px;
  284. height: 15px;
  285. background-color: #777777;
  286. border-radius: 15px;
  287. margin-right: 10px;
  288. -webkit-transition: background 0.3s ease;
  289. transition: background 0.3s ease;
  290. vertical-align: middle;
  291. margin: 0 16px;
  292. }
  293. .switch .lever:after {
  294. -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  295. box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  296. content: "";
  297. position: absolute;
  298. display: inline-block;
  299. width: 21px;
  300. height: 21px;
  301. background-color: #f3f3f3;
  302. border-radius: 21px;
  303. left: -5px;
  304. top: -3px;
  305. -webkit-transition: left 0.3s ease, background .3s ease, -webkit-box-shadow 0.1s ease;
  306. transition: left 0.3s ease, background .3s ease, -webkit-box-shadow 0.1s ease;
  307. transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease;
  308. transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease, -webkit-box-shadow 0.1s ease;
  309. }
  310. input[type=checkbox]:not(:disabled) ~ .lever:active:after {
  311. -webkit-box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.08);
  312. box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.08);
  313. }
  314. .switch input[type=checkbox]:checked + .lever:after {
  315. left: 24px;
  316. }
  317. .switch input[type=checkbox][disabled] + .lever {
  318. cursor: default;
  319. }
  320. .switch input[type=checkbox][disabled] + .lever:after,
  321. .switch input[type=checkbox][disabled]:checked + .lever:after {
  322. background-color: #BDBDBD;
  323. }
  324. [type='range'] {
  325. -webkit-appearance: none;
  326. width: 100%;
  327. border: 0;
  328. }
  329. [type='range']:focus {
  330. outline: 0;
  331. }
  332. [type='range']:focus::-webkit-slider-thumb {
  333. -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
  334. box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
  335. }
  336. [type='range']:focus::-moz-range-thumb {
  337. box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
  338. }
  339. [type='range']:focus::-ms-thumb {
  340. box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
  341. }
  342. [type='range']::-webkit-slider-runnable-track {
  343. cursor: pointer;
  344. height: 8px;
  345. -webkit-transition: all .2s ease;
  346. transition: all .2s ease;
  347. width: 100%;
  348. background: #e6e6e6;
  349. border: 2px solid #e6e6e6;
  350. border-radius: 5px;
  351. }
  352. [type='range']::-webkit-slider-thumb {
  353. -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  354. box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  355. border-radius: 12px;
  356. cursor: pointer;
  357. height: 24px;
  358. width: 24px;
  359. -webkit-appearance: none;
  360. margin-top: -10px;
  361. }
  362. [type='range']::-moz-range-track {
  363. cursor: pointer;
  364. height: 8px;
  365. -webkit-transition: all .2s ease;
  366. transition: all .2s ease;
  367. width: 100%;
  368. background: #e6e6e6;
  369. border: 2px solid #e6e6e6;
  370. border-radius: 5px;
  371. }
  372. [type='range']::-moz-range-thumb {
  373. box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  374. border-radius: 12px;
  375. cursor: pointer;
  376. height: 24px;
  377. width: 24px;
  378. }
  379. [type='range']::-ms-track {
  380. cursor: pointer;
  381. height: 8px;
  382. -webkit-transition: all .2s ease;
  383. transition: all .2s ease;
  384. width: 100%;
  385. background: transparent;
  386. border-color: transparent;
  387. border-width: 12px 0;
  388. color: transparent;
  389. }
  390. [type='range']::-ms-fill-lower {
  391. background: #d9d9d9;
  392. border: 2px solid #e6e6e6;
  393. border-radius: 10px;
  394. }
  395. [type='range']::-ms-fill-upper {
  396. background: #e6e6e6;
  397. border: 2px solid #e6e6e6;
  398. border-radius: 10px;
  399. }
  400. [type='range']::-ms-thumb {
  401. box-shadow: 0 0 1px rgba(0, 0, 0, 0.11), 0 1px 2px rgba(0, 0, 0, 0.22);
  402. border-radius: 12px;
  403. cursor: pointer;
  404. height: 24px;
  405. width: 24px;
  406. margin-top: 0;
  407. }
  408. .select-wrapper {
  409. position: relative;
  410. width: 100%;
  411. max-width: 23rem;
  412. }
  413. .form-inline .select-wrapper {
  414. width: auto;
  415. }
  416. .input-group .select-wrapper {
  417. display: table-cell;
  418. }
  419. .select-wrapper select {
  420. -webkit-appearance: none;
  421. -moz-appearance: none;
  422. appearance: none;
  423. line-height: 1;
  424. padding-right: 30px;
  425. }
  426. .select-wrapper select:disabled {
  427. color: rgba(0, 0, 0, 0.26);
  428. }
  429. .select-wrapper:after {
  430. content: '▾';
  431. font-style: normal;
  432. font-weight: 400;
  433. line-height: 1;
  434. margin-top: -.5em;
  435. padding-right: 12px;
  436. pointer-events: none;
  437. position: absolute;
  438. right: 0;
  439. top: 50%;
  440. z-index: 2;
  441. }
  442. .form-disabled .select-wrapper::after {
  443. color: #777777;
  444. }
  445. @media (min-width: 600px) {
  446. .form-inline .radio input[type="radio"],
  447. .form-inline .checkbox input[type="checkbox"] {
  448. position: absolute;
  449. }
  450. .form-inline .radio label,
  451. .form-inline .checkbox label {
  452. padding-left: 22px;
  453. margin-right: 25px;
  454. }
  455. }
  456. @media (min-width: 900px) {
  457. .form-control {
  458. font-size: 16px;
  459. }
  460. }
  461. @media screen and (-webkit-min-device-pixel-ratio: 0) {
  462. .form-control {
  463. font-size: 16px;
  464. }
  465. input[type="date"].form-control,
  466. input[type="time"].form-control,
  467. input[type="datetime-local"].form-control,
  468. input[type="month"].form-control {
  469. line-height: 24px;
  470. background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+) no-repeat 95% 50%;
  471. -webkit-appearance: none;
  472. -moz-appearance: none;
  473. appearance: none;
  474. }
  475. input[type="date"].form-control:focus,
  476. input[type="time"].form-control:focus,
  477. input[type="datetime-local"].form-control:focus,
  478. input[type="month"].form-control:focus {
  479. background: inherit;
  480. }
  481. }