You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

254 lines
7.3 KiB

  1. /*******************************
  2. UI Checkbox
  3. *******************************/
  4. /*--------------
  5. Standard
  6. ---------------*/
  7. /*--- Content ---*/
  8. .ui.checkbox {
  9. position: relative;
  10. display: inline-block;
  11. outline: none;
  12. margin-right: 0.5em;
  13. vertical-align: middle;
  14. }
  15. .ui.checkbox input {
  16. visibility: hidden;
  17. outline: none;
  18. }
  19. /*--- Box ---*/
  20. .ui.checkbox .box,
  21. .ui.checkbox label {
  22. outline: none;
  23. cursor: pointer;
  24. position: absolute;
  25. line-height: 1;
  26. width: 1em;
  27. height: 1em;
  28. bottom: 0em;
  29. left: 0em;
  30. border-radius: 4px;
  31. -webkit-box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.2);
  32. -moz-box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.2);
  33. box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.2);
  34. background: #FFFFFF;
  35. -webkit-transition: background-color 0.1s ease-out, box-shadow 0.1s ease-out;
  36. -moz-transition: background-color 0.1s ease-out, box-shadow 0.1s ease-out;
  37. -o-transition: background-color 0.1s ease-out, box-shadow 0.1s ease-out;
  38. -ms-transition: background-color 0.1s ease-out, box-shadow 0.1s ease-out;
  39. transition: background-color 0.1s ease-out, box-shadow 0.1s ease-out;
  40. }
  41. /*--- Checkbox ---*/
  42. .ui.checkbox .box:after,
  43. .ui.checkbox label:after {
  44. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  45. filter: alpha(opacity=0);
  46. opacity: 0;
  47. content: '';
  48. position: absolute;
  49. background: transparent;
  50. border: 0.2em solid #333333;
  51. border-top: none;
  52. border-right: none;
  53. -webkit-transform: rotate(-45deg);
  54. -moz-transform: rotate(-45deg);
  55. -o-transform: rotate(-45deg);
  56. -ms-transform: rotate(-45deg);
  57. transform: rotate(-45deg);
  58. }
  59. .ui.checkbox .box:after,
  60. .ui.checkbox label:after {
  61. width: 0.5em;
  62. height: 0.2em;
  63. top: 0.25em;
  64. left: 0.2em;
  65. }
  66. /*--- Label ---*/
  67. .ui.checkbox + label {
  68. cursor: pointer;
  69. opacity: 0.85;
  70. }
  71. .ui.checkbox + label:hover {
  72. opacity: 1;
  73. }
  74. /*******************************
  75. States
  76. *******************************/
  77. /*--- Hover ---*/
  78. .ui.checkbox .box:hover,
  79. .ui.checkbox label:hover {
  80. background-color: #FAFAFA;
  81. -webkit-box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.3);
  82. -moz-box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.3);
  83. box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.3);
  84. }
  85. /*--- Down ---*/
  86. .ui.checkbox .box:active,
  87. .ui.checkbox label:active {
  88. background-color: #F5F5F5;
  89. }
  90. /*--- Active ---*/
  91. .ui.checkbox input:checked + .box:after,
  92. .ui.checkbox input:checked + label:after {
  93. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  94. filter: alpha(opacity=100);
  95. opacity: 1;
  96. }
  97. /*--- Disabled ---*/
  98. .ui.disabled.checkbox + .box:after,
  99. .ui.checkbox input[disabled] + .box:after,
  100. .ui.disabled.checkbox label,
  101. .ui.checkbox input[disabled] + label {
  102. opacity: 0.4;
  103. }
  104. /*******************************
  105. Variations
  106. *******************************/
  107. /*--------------
  108. Radio
  109. ---------------*/
  110. .ui.radio.checkbox {
  111. width: 14px;
  112. height: 16px;
  113. }
  114. .ui.radio.checkbox .box,
  115. .ui.radio.checkbox label {
  116. width: 14px;
  117. height: 14px;
  118. -webkit-border-radius: 500px;
  119. -moz-border-radius: 500px;
  120. border-radius: 500px;
  121. }
  122. .ui.radio.checkbox .box:after,
  123. .ui.radio.checkbox label:after {
  124. top: 3px;
  125. left: 3px;
  126. border: none;
  127. width: 8px;
  128. height: 8px;
  129. background-color: #555555;
  130. -webkit-border-radius: 500px;
  131. -moz-border-radius: 500px;
  132. border-radius: 500px;
  133. }
  134. /*--------------
  135. Sizes
  136. ---------------*/
  137. .ui.checkbox {
  138. width: 1em;
  139. height: 1em;
  140. }
  141. .ui.checkbox,
  142. .ui.checkbox .box,
  143. .ui.checkbox label {
  144. font-size: 1em;
  145. }
  146. .ui.large.checkbox {
  147. width: 1.25em;
  148. height: 1.25em;
  149. }
  150. .ui.large.checkbox,
  151. .ui.large.checkbox .box,
  152. .ui.large.checkbox label {
  153. font-size: 1.25em;
  154. }
  155. .ui.huge.checkbox {
  156. width: 1.5em;
  157. height: 1.5em;
  158. }
  159. .ui.huge.checkbox,
  160. .ui.huge.checkbox .box,
  161. .ui.huge.checkbox label {
  162. font-size: 1.5em;
  163. }
  164. /*--------------
  165. Colors
  166. ---------------*/
  167. .ui.round.blue.checkbox label:after {
  168. background: -webkit-linear-gradient(top, #016286 0%, #00506e 100%);
  169. background: -moz-linear-gradient(top, #016286 0%, #00506e 100%);
  170. background: -o-linear-gradient(top, #016286 0%, #00506e 100%);
  171. background: -ms-linear-gradient(top, #016286 0%, #00506e 100%);
  172. background: linear-gradient(top, #016286 0%, #00506e 100%);
  173. }
  174. /*--------------
  175. Rounded
  176. ---------------*/
  177. /* Alternate Round Style */
  178. .ui.round.checkbox {
  179. width: 20px;
  180. height: 20px;
  181. margin: 0px auto;
  182. background: #FCFFF4;
  183. background: -webkit-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
  184. background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
  185. background: -o-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
  186. background: -ms-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
  187. background: linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
  188. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FCFFF4', endColorstr='#b3bead', GradientType=0);
  189. -webkit-border-radius: 500px;
  190. -moz-border-radius: 500px;
  191. border-radius: 500px;
  192. -webkit-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
  193. -moz-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
  194. box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
  195. position: relative;
  196. }
  197. .ui.round.checkbox .box,
  198. .ui.round.checkbox label {
  199. cursor: pointer;
  200. position: absolute;
  201. width: 14px;
  202. height: 14px;
  203. -webkit-border-radius: 500px;
  204. -moz-border-radius: 500px;
  205. border-radius: 500px;
  206. left: 3px;
  207. top: 3px;
  208. -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5) inset, 0px 1px 0px #ffffff;
  209. -moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5) inset, 0px 1px 0px #ffffff;
  210. box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5) inset, 0px 1px 0px #ffffff;
  211. background: -webkit-linear-gradient(top, #222222 0%, #4d4d4d 100%);
  212. background: -moz-linear-gradient(top, #222222 0%, #4d4d4d 100%);
  213. background: -o-linear-gradient(top, #222222 0%, #4d4d4d 100%);
  214. background: -ms-linear-gradient(top, #222222 0%, #4d4d4d 100%);
  215. background: linear-gradient(top, #222222 0%, #4d4d4d 100%);
  216. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#222222', endColorstr='#4D4D4D', GradientType=0);
  217. }
  218. .ui.round.checkbox .box:after,
  219. .ui.round.checkbox label:after {
  220. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  221. filter: alpha(opacity=0);
  222. opacity: 0;
  223. content: '';
  224. position: absolute;
  225. width: 10px;
  226. height: 10px;
  227. background: #B6B6B6;
  228. background: -webkit-linear-gradient(top, #b6b6b6 0%, #929292 100%);
  229. background: -moz-linear-gradient(top, #b6b6b6 0%, #929292 100%);
  230. background: -o-linear-gradient(top, #b6b6b6 0%, #929292 100%);
  231. background: -ms-linear-gradient(top, #b6b6b6 0%, #929292 100%);
  232. background: linear-gradient(top, #b6b6b6 0%, #929292 100%);
  233. border: none;
  234. -webkit-border-radius: 500px;
  235. -moz-border-radius: 500px;
  236. border-radius: 500px;
  237. top: 2px;
  238. left: 2px;
  239. -webkit-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
  240. -moz-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
  241. box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
  242. }
  243. .ui.round.checkbox .box:hover:after,
  244. .ui.round.checkbox label:hover:after {
  245. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
  246. filter: alpha(opacity=30);
  247. opacity: 0.3;
  248. }
  249. .ui.round.checkbox input:checked + .box:after,
  250. .ui.round.checkbox input:checked + label:after {
  251. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  252. filter: alpha(opacity=100);
  253. opacity: 1;
  254. }