You are here

form-controls.css in Open Social 8

@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;
}

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