build.css 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. .checkbox {
  2. padding-left: 20px; }
  3. .checkbox label {
  4. display: inline-block;
  5. vertical-align: middle;
  6. position: relative;
  7. padding-left: 5px; }
  8. .checkbox label::before {
  9. content: "";
  10. display: inline-block;
  11. position: absolute;
  12. width: 17px;
  13. height: 17px;
  14. left: 0;
  15. margin-left: -20px;
  16. border: 1px solid #cccccc;
  17. border-radius: 3px;
  18. background-color: #fff;
  19. -webkit-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
  20. -o-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
  21. transition: border 0.15s ease-in-out, color 0.15s ease-in-out; }
  22. .checkbox label::after {
  23. display: inline-block;
  24. position: absolute;
  25. width: 16px;
  26. height: 16px;
  27. left: 0;
  28. top: 0;
  29. margin-left: -20px;
  30. padding-left: 3px;
  31. padding-top: 1px;
  32. font-size: 11px;
  33. color: #555555; }
  34. .checkbox input[type="checkbox"],
  35. .checkbox input[type="radio"] {
  36. opacity: 0;
  37. z-index: 1; }
  38. .checkbox input[type="checkbox"]:focus + label::before,
  39. .checkbox input[type="radio"]:focus + label::before {
  40. outline: thin dotted;
  41. outline: 5px auto -webkit-focus-ring-color;
  42. outline-offset: -2px; }
  43. .checkbox input[type="checkbox"]:checked + label::after,
  44. .checkbox input[type="radio"]:checked + label::after {
  45. font-family: "FontAwesome";
  46. content: "\f00c";}
  47. .checkbox input[type="checkbox"]:indeterminate + label::after,
  48. .checkbox input[type="radio"]:indeterminate + label::after {
  49. display: block;
  50. content: "";
  51. width: 10px;
  52. height: 3px;
  53. background-color: #555555;
  54. border-radius: 2px;
  55. margin-left: -16.5px;
  56. margin-top: 7px;
  57. }
  58. .checkbox input[type="checkbox"]:disabled + label,
  59. .checkbox input[type="radio"]:disabled + label {
  60. opacity: 0.65; }
  61. .checkbox input[type="checkbox"]:disabled + label::before,
  62. .checkbox input[type="radio"]:disabled + label::before {
  63. background-color: #eeeeee;
  64. cursor: not-allowed; }
  65. .checkbox.checkbox-circle label::before {
  66. border-radius: 50%; }
  67. .checkbox.checkbox-inline {
  68. margin-top: 0; }
  69. .checkbox-primary input[type="checkbox"]:checked + label::before,
  70. .checkbox-primary input[type="radio"]:checked + label::before {
  71. background-color: #337ab7;
  72. border-color: #337ab7; }
  73. .checkbox-primary input[type="checkbox"]:checked + label::after,
  74. .checkbox-primary input[type="radio"]:checked + label::after {
  75. color: #fff; }
  76. .checkbox-danger input[type="checkbox"]:checked + label::before,
  77. .checkbox-danger input[type="radio"]:checked + label::before {
  78. background-color: #d9534f;
  79. border-color: #d9534f; }
  80. .checkbox-danger input[type="checkbox"]:checked + label::after,
  81. .checkbox-danger input[type="radio"]:checked + label::after {
  82. color: #fff; }
  83. .checkbox-info input[type="checkbox"]:checked + label::before,
  84. .checkbox-info input[type="radio"]:checked + label::before {
  85. background-color: #5bc0de;
  86. border-color: #5bc0de; }
  87. .checkbox-info input[type="checkbox"]:checked + label::after,
  88. .checkbox-info input[type="radio"]:checked + label::after {
  89. color: #fff; }
  90. .checkbox-warning input[type="checkbox"]:checked + label::before,
  91. .checkbox-warning input[type="radio"]:checked + label::before {
  92. background-color: #f0ad4e;
  93. border-color: #f0ad4e; }
  94. .checkbox-warning input[type="checkbox"]:checked + label::after,
  95. .checkbox-warning input[type="radio"]:checked + label::after {
  96. color: #fff; }
  97. .checkbox-success input[type="checkbox"]:checked + label::before,
  98. .checkbox-success input[type="radio"]:checked + label::before {
  99. background-color: #5cb85c;
  100. border-color: #5cb85c; }
  101. .checkbox-success input[type="checkbox"]:checked + label::after,
  102. .checkbox-success input[type="radio"]:checked + label::after {
  103. color: #fff;}
  104. .checkbox-primary input[type="checkbox"]:indeterminate + label::before,
  105. .checkbox-primary input[type="radio"]:indeterminate + label::before {
  106. background-color: #337ab7;
  107. border-color: #337ab7;
  108. }
  109. .checkbox-primary input[type="checkbox"]:indeterminate + label::after,
  110. .checkbox-primary input[type="radio"]:indeterminate + label::after {
  111. background-color: #fff;
  112. }
  113. .checkbox-danger input[type="checkbox"]:indeterminate + label::before,
  114. .checkbox-danger input[type="radio"]:indeterminate + label::before {
  115. background-color: #d9534f;
  116. border-color: #d9534f;
  117. }
  118. .checkbox-danger input[type="checkbox"]:indeterminate + label::after,
  119. .checkbox-danger input[type="radio"]:indeterminate + label::after {
  120. background-color: #fff;
  121. }
  122. .checkbox-info input[type="checkbox"]:indeterminate + label::before,
  123. .checkbox-info input[type="radio"]:indeterminate + label::before {
  124. background-color: #5bc0de;
  125. border-color: #5bc0de;
  126. }
  127. .checkbox-info input[type="checkbox"]:indeterminate + label::after,
  128. .checkbox-info input[type="radio"]:indeterminate + label::after {
  129. background-color: #fff;
  130. }
  131. .checkbox-warning input[type="checkbox"]:indeterminate + label::before,
  132. .checkbox-warning input[type="radio"]:indeterminate + label::before {
  133. background-color: #f0ad4e;
  134. border-color: #f0ad4e;
  135. }
  136. .checkbox-warning input[type="checkbox"]:indeterminate + label::after,
  137. .checkbox-warning input[type="radio"]:indeterminate + label::after {
  138. background-color: #fff;
  139. }
  140. .checkbox-success input[type="checkbox"]:indeterminate + label::before,
  141. .checkbox-success input[type="radio"]:indeterminate + label::before {
  142. background-color: #5cb85c;
  143. border-color: #5cb85c;
  144. }
  145. .checkbox-success input[type="checkbox"]:indeterminate + label::after,
  146. .checkbox-success input[type="radio"]:indeterminate + label::after {
  147. background-color: #fff;
  148. }
  149. .radio {
  150. padding-left: 20px; }
  151. .radio label {
  152. display: inline-block;
  153. vertical-align: middle;
  154. position: relative;
  155. padding-left: 5px; }
  156. .radio label::before {
  157. content: "";
  158. display: inline-block;
  159. position: absolute;
  160. width: 17px;
  161. height: 17px;
  162. left: 0;
  163. margin-left: -20px;
  164. border: 1px solid #cccccc;
  165. border-radius: 50%;
  166. background-color: #fff;
  167. -webkit-transition: border 0.15s ease-in-out;
  168. -o-transition: border 0.15s ease-in-out;
  169. transition: border 0.15s ease-in-out; }
  170. .radio label::after {
  171. display: inline-block;
  172. position: absolute;
  173. content: " ";
  174. width: 11px;
  175. height: 11px;
  176. left: 3px;
  177. top: 3px;
  178. margin-left: -20px;
  179. border-radius: 50%;
  180. background-color: #555555;
  181. -webkit-transform: scale(0, 0);
  182. -ms-transform: scale(0, 0);
  183. -o-transform: scale(0, 0);
  184. transform: scale(0, 0);
  185. -webkit-transition: -webkit-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
  186. -moz-transition: -moz-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
  187. -o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
  188. transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33); }
  189. .radio input[type="radio"] {
  190. opacity: 0;
  191. z-index: 1; }
  192. .radio input[type="radio"]:focus + label::before {
  193. outline: thin dotted;
  194. outline: 5px auto -webkit-focus-ring-color;
  195. outline-offset: -2px; }
  196. .radio input[type="radio"]:checked + label::after {
  197. -webkit-transform: scale(1, 1);
  198. -ms-transform: scale(1, 1);
  199. -o-transform: scale(1, 1);
  200. transform: scale(1, 1); }
  201. .radio input[type="radio"]:disabled + label {
  202. opacity: 0.65; }
  203. .radio input[type="radio"]:disabled + label::before {
  204. cursor: not-allowed; }
  205. .radio.radio-inline {
  206. margin-top: 0; }
  207. .radio-primary input[type="radio"] + label::after {
  208. background-color: #337ab7; }
  209. .radio-primary input[type="radio"]:checked + label::before {
  210. border-color: #337ab7; }
  211. .radio-primary input[type="radio"]:checked + label::after {
  212. background-color: #337ab7; }
  213. .radio-danger input[type="radio"] + label::after {
  214. background-color: #d9534f; }
  215. .radio-danger input[type="radio"]:checked + label::before {
  216. border-color: #d9534f; }
  217. .radio-danger input[type="radio"]:checked + label::after {
  218. background-color: #d9534f; }
  219. .radio-info input[type="radio"] + label::after {
  220. background-color: #5bc0de; }
  221. .radio-info input[type="radio"]:checked + label::before {
  222. border-color: #5bc0de; }
  223. .radio-info input[type="radio"]:checked + label::after {
  224. background-color: #5bc0de; }
  225. .radio-warning input[type="radio"] + label::after {
  226. background-color: #f0ad4e; }
  227. .radio-warning input[type="radio"]:checked + label::before {
  228. border-color: #f0ad4e; }
  229. .radio-warning input[type="radio"]:checked + label::after {
  230. background-color: #f0ad4e; }
  231. .radio-success input[type="radio"] + label::after {
  232. background-color: #5cb85c; }
  233. .radio-success input[type="radio"]:checked + label::before {
  234. border-color: #5cb85c; }
  235. .radio-success input[type="radio"]:checked + label::after {
  236. background-color: #5cb85c; }
  237. input[type="checkbox"].styled:checked + label:after,
  238. input[type="radio"].styled:checked + label:after {
  239. font-family: 'FontAwesome';
  240. content: "\f00c"; }
  241. input[type="checkbox"] .styled:checked + label::before,
  242. input[type="radio"] .styled:checked + label::before {
  243. color: #fff; }
  244. input[type="checkbox"] .styled:checked + label::after,
  245. input[type="radio"] .styled:checked + label::after {
  246. color: #fff; }