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.

234 lines
7.1 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. width: 1em;
  13. height: 1em;
  14. vertical-align: middle;
  15. }
  16. .ui.checkbox input {
  17. visibility: hidden;
  18. outline: none;
  19. }
  20. /*--- Box ---*/
  21. .ui.checkbox .box,
  22. .ui.checkbox label {
  23. outline: none;
  24. cursor: pointer;
  25. position: absolute;
  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. /*******************************
  67. States
  68. *******************************/
  69. /*--- Hover ---*/
  70. .ui.checkbox .box:hover,
  71. .ui.checkbox label:hover {
  72. background-color: rgba(0, 0, 0, 0.02);
  73. -webkit-box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.3);
  74. -moz-box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.3);
  75. box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.3);
  76. }
  77. /*--- Down ---*/
  78. .ui.checkbox .box:active,
  79. .ui.checkbox label:active {
  80. background-color: rgba(0, 0, 0, 0.05);
  81. }
  82. /*--- Active ---*/
  83. .ui.checkbox input:checked + .box:after,
  84. .ui.checkbox input:checked + label:after {
  85. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  86. filter: alpha(opacity=100);
  87. opacity: 1;
  88. }
  89. /*--- Disabled ---*/
  90. .ui.disabled.checkbox + .box:after,
  91. .ui.checkbox input[disabled] + .box:after,
  92. .ui.disabled.checkbox label,
  93. .ui.checkbox input[disabled] + label {
  94. opacity: 0.4;
  95. }
  96. /*******************************
  97. Variations
  98. *******************************/
  99. /*--------------
  100. Radio
  101. ---------------*/
  102. .ui.radio.checkbox {
  103. width: 14px;
  104. height: 16px;
  105. }
  106. .ui.radio.checkbox .box,
  107. .ui.radio.checkbox label {
  108. width: 14px;
  109. height: 14px;
  110. -webkit-border-radius: 500px;
  111. -moz-border-radius: 500px;
  112. border-radius: 500px;
  113. }
  114. .ui.radio.checkbox .box:after,
  115. .ui.radio.checkbox label:after {
  116. top: 3px;
  117. left: 3px;
  118. border: none;
  119. width: 8px;
  120. height: 8px;
  121. background-color: #555555;
  122. -webkit-border-radius: 500px;
  123. -moz-border-radius: 500px;
  124. border-radius: 500px;
  125. }
  126. /*--------------
  127. Sizes
  128. ---------------*/
  129. .ui.checkbox,
  130. .ui.checkbox .box,
  131. .ui.checkbox label {
  132. font-size: 1em;
  133. }
  134. .ui.large.checkbox,
  135. .ui.large.checkbox .box,
  136. .ui.large.checkbox label {
  137. font-size: 1.25em;
  138. }
  139. .ui.huge.checkbox,
  140. .ui.huge.checkbox .box,
  141. .ui.huge.checkbox label {
  142. font-size: 1.5em;
  143. }
  144. /*--------------
  145. Colors
  146. ---------------*/
  147. .ui.round.blue.checkbox label:after {
  148. background: -webkit-linear-gradient(top, #016286 0%, #00506e 100%);
  149. background: -moz-linear-gradient(top, #016286 0%, #00506e 100%);
  150. background: -o-linear-gradient(top, #016286 0%, #00506e 100%);
  151. background: -ms-linear-gradient(top, #016286 0%, #00506e 100%);
  152. background: linear-gradient(top, #016286 0%, #00506e 100%);
  153. }
  154. /*--------------
  155. Rounded
  156. ---------------*/
  157. /* Alternate Round Style */
  158. .ui.round.checkbox {
  159. width: 20px;
  160. height: 20px;
  161. margin: 0px auto;
  162. background: #FCFFF4;
  163. background: -webkit-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
  164. background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
  165. background: -o-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
  166. background: -ms-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
  167. background: linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
  168. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FCFFF4', endColorstr='#b3bead', GradientType=0);
  169. -webkit-border-radius: 500px;
  170. -moz-border-radius: 500px;
  171. border-radius: 500px;
  172. -webkit-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
  173. -moz-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
  174. box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
  175. position: relative;
  176. }
  177. .ui.round.checkbox .box,
  178. .ui.round.checkbox label {
  179. cursor: pointer;
  180. position: absolute;
  181. width: 14px;
  182. height: 14px;
  183. -webkit-border-radius: 500px;
  184. -moz-border-radius: 500px;
  185. border-radius: 500px;
  186. left: 3px;
  187. top: 3px;
  188. -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5) inset, 0px 1px 0px #ffffff;
  189. -moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5) inset, 0px 1px 0px #ffffff;
  190. box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5) inset, 0px 1px 0px #ffffff;
  191. background: -webkit-linear-gradient(top, #222222 0%, #4d4d4d 100%);
  192. background: -moz-linear-gradient(top, #222222 0%, #4d4d4d 100%);
  193. background: -o-linear-gradient(top, #222222 0%, #4d4d4d 100%);
  194. background: -ms-linear-gradient(top, #222222 0%, #4d4d4d 100%);
  195. background: linear-gradient(top, #222222 0%, #4d4d4d 100%);
  196. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#222222', endColorstr='#4D4D4D', GradientType=0);
  197. }
  198. .ui.round.checkbox .box:after,
  199. .ui.round.checkbox label:after {
  200. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  201. filter: alpha(opacity=0);
  202. opacity: 0;
  203. content: '';
  204. position: absolute;
  205. width: 10px;
  206. height: 10px;
  207. background: #B6B6B6;
  208. background: -webkit-linear-gradient(top, #b6b6b6 0%, #929292 100%);
  209. background: -moz-linear-gradient(top, #b6b6b6 0%, #929292 100%);
  210. background: -o-linear-gradient(top, #b6b6b6 0%, #929292 100%);
  211. background: -ms-linear-gradient(top, #b6b6b6 0%, #929292 100%);
  212. background: linear-gradient(top, #b6b6b6 0%, #929292 100%);
  213. border: none;
  214. -webkit-border-radius: 500px;
  215. -moz-border-radius: 500px;
  216. border-radius: 500px;
  217. top: 2px;
  218. left: 2px;
  219. -webkit-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
  220. -moz-box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
  221. box-shadow: inset 0px 1px 1px #ffffff, 0px 1px 3px rgba(0, 0, 0, 0.5);
  222. }
  223. .ui.round.checkbox .box:hover:after,
  224. .ui.round.checkbox label:hover:after {
  225. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
  226. filter: alpha(opacity=30);
  227. opacity: 0.3;
  228. }
  229. .ui.round.checkbox input:checked + .box:after,
  230. .ui.round.checkbox input:checked + label:after {
  231. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  232. filter: alpha(opacity=100);
  233. opacity: 1;
  234. }