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.

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