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.

252 lines
6.6 KiB

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