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.

486 lines
19 KiB

10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic UI
  3. * git://github.com/Semantic-Org/Semantic-UI.git#1.0
  4. *
  5. *
  6. * Copyright 2014 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Checkbox
  13. *******************************/
  14. /*--------------
  15. Content
  16. ---------------*/
  17. .ui.checkbox {
  18. position: relative;
  19. display: inline-block;
  20. height: 17px;
  21. font-size: 1rem;
  22. line-height: 15px;
  23. min-width: 17px;
  24. -webkit-backface-visibility: hidden;
  25. backface-visibility: hidden;
  26. outline: none;
  27. vertical-align: middle;
  28. }
  29. .ui.checkbox input {
  30. position: absolute;
  31. top: 0px;
  32. left: 0px;
  33. opacity: 0 !important;
  34. outline: none;
  35. z-index: -1;
  36. }
  37. /*--------------
  38. Box
  39. ---------------*/
  40. .ui.checkbox .box,
  41. .ui.checkbox label {
  42. cursor: pointer;
  43. padding-left: 1.75em;
  44. outline: none;
  45. }
  46. .ui.checkbox label {
  47. font-size: 1em;
  48. }
  49. .ui.checkbox .box:before,
  50. .ui.checkbox label:before {
  51. position: absolute;
  52. line-height: 1;
  53. width: 17px;
  54. height: 17px;
  55. top: 0em;
  56. left: 0em;
  57. content: '';
  58. background: #ffffff;
  59. border-radius: 0.25em;
  60. -webkit-transition: background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  61. transition: background-color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  62. border: 1px solid #d4d4d5;
  63. }
  64. /*--------------
  65. Checkmark
  66. ---------------*/
  67. .ui.checkbox .box:after,
  68. .ui.checkbox label:after {
  69. position: absolute;
  70. top: 0px;
  71. left: 0px;
  72. line-height: 17px;
  73. width: 17px;
  74. height: 17px;
  75. text-align: center;
  76. opacity: 0;
  77. color: rgba(0, 0, 0, 0.8);
  78. -webkit-transition: all 0.1s ease;
  79. transition: all 0.1s ease;
  80. }
  81. /*--------------
  82. Label
  83. ---------------*/
  84. /* Inside */
  85. .ui.checkbox label,
  86. .ui.checkbox + label {
  87. cursor: pointer;
  88. color: rgba(0, 0, 0, 0.8);
  89. -webkit-transition: color 0.2s ease;
  90. transition: color 0.2s ease;
  91. -webkit-user-select: none;
  92. -moz-user-select: none;
  93. -ms-user-select: none;
  94. user-select: none;
  95. }
  96. /* Outside */
  97. .ui.checkbox + label {
  98. vertical-align: middle;
  99. }
  100. /*******************************
  101. States
  102. *******************************/
  103. /*--------------
  104. Hover
  105. ---------------*/
  106. .ui.checkbox .box:hover::before,
  107. .ui.checkbox label:hover::before {
  108. background: #ffffff;
  109. border: 1px solid rgba(39, 41, 43, 0.2);
  110. }
  111. .ui.checkbox label:hover,
  112. .ui.checkbox + label:hover {
  113. color: rgba(0, 0, 0, 0.8);
  114. }
  115. /*--------------
  116. Down
  117. ---------------*/
  118. .ui.checkbox .box:active::before,
  119. .ui.checkbox label:active::before {
  120. background: #f5f5f5;
  121. border: 1px solid 1px solid rgba(39, 41, 43, 0.2);
  122. }
  123. .ui.checkbox input:active ~ label {
  124. color: rgba(0, 0, 0, 0.8);
  125. }
  126. /*--------------
  127. Focus
  128. ---------------*/
  129. .ui.checkbox input:focus ~ .box:before,
  130. .ui.checkbox input:focus ~ label:before {
  131. background: #f5f5f5;
  132. border: 1px solid 1px solid rgba(39, 41, 43, 0.2);
  133. }
  134. .ui.checkbox input:focus ~ label {
  135. color: rgba(0, 0, 0, 0.8);
  136. }
  137. /*--------------
  138. Active
  139. ---------------*/
  140. .ui.checkbox input:checked ~ .box:after,
  141. .ui.checkbox input:checked ~ label:after {
  142. opacity: 1;
  143. }
  144. /*--------------
  145. Read-Only
  146. ---------------*/
  147. .ui.read-only.checkbox,
  148. .ui.read-only.checkbox label {
  149. cursor: default;
  150. }
  151. /*--------------
  152. Disabled
  153. ---------------*/
  154. .ui.disabled.checkbox .box:after,
  155. .ui.disabled.checkbox label,
  156. .ui.checkbox input[disabled] ~ .box:after,
  157. .ui.checkbox input[disabled] ~ label {
  158. cursor: default;
  159. opacity: 0.5;
  160. color: #000000;
  161. }
  162. /*******************************
  163. Types
  164. *******************************/
  165. /*--------------
  166. Radio
  167. ---------------*/
  168. .ui.radio.checkbox {
  169. height: 14px;
  170. }
  171. /* Box */
  172. .ui.radio.checkbox .box:before,
  173. .ui.radio.checkbox label:before {
  174. width: 14px;
  175. height: 14px;
  176. border-radius: 500rem;
  177. top: 1px;
  178. left: 0px;
  179. -webkit-transform: none;
  180. -ms-transform: none;
  181. transform: none;
  182. }
  183. /* Circle */
  184. .ui.radio.checkbox .box:after,
  185. .ui.radio.checkbox label:after {
  186. border: none;
  187. width: 14px;
  188. height: 14px;
  189. line-height: 14px;
  190. top: 1px;
  191. left: 0px;
  192. font-size: 9px;
  193. }
  194. /* Radio Checkbox */
  195. .ui.radio.checkbox .box:after,
  196. .ui.radio.checkbox label:after {
  197. width: 14px;
  198. height: 14px;
  199. border-radius: 500rem;
  200. -webkit-transform: scale(0.42857143);
  201. -ms-transform: scale(0.42857143);
  202. transform: scale(0.42857143);
  203. background-color: rgba(0, 0, 0, 0.8);
  204. }
  205. /*--------------
  206. Slider
  207. ---------------*/
  208. .ui.slider.checkbox {
  209. cursor: pointer;
  210. height: 1.25rem;
  211. }
  212. .ui.slider.checkbox .box,
  213. .ui.slider.checkbox label {
  214. padding-left: 4.5rem;
  215. line-height: 1rem;
  216. color: rgba(0, 0, 0, 0.4);
  217. }
  218. /* Line */
  219. .ui.slider.checkbox .box:before,
  220. .ui.slider.checkbox label:before {
  221. cursor: pointer;
  222. display: block;
  223. position: absolute;
  224. content: '';
  225. top: 0.4rem;
  226. left: 0em;
  227. z-index: 1;
  228. border: none !important;
  229. background-color: rgba(0, 0, 0, 0.05);
  230. width: 3.5rem;
  231. height: 0.25rem;
  232. -webkit-transform: none;
  233. -ms-transform: none;
  234. transform: none;
  235. border-radius: 500rem;
  236. -webkit-transition: background 0.3s ease
  237. ;
  238. transition: background 0.3s ease
  239. ;
  240. }
  241. /* Handle */
  242. .ui.slider.checkbox .box:after,
  243. .ui.slider.checkbox label:after {
  244. background: #ffffff -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05));
  245. background: #ffffff linear-gradient(transparent, rgba(0, 0, 0, 0.05));
  246. position: absolute;
  247. content: '';
  248. opacity: 1;
  249. z-index: 2;
  250. border: none;
  251. box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(39, 41, 43, 0.15) inset;
  252. width: 1.5rem;
  253. height: 1.5rem;
  254. top: -0.25rem;
  255. left: 0em;
  256. -webkit-transform: none;
  257. -ms-transform: none;
  258. transform: none;
  259. border-radius: 500rem;
  260. -webkit-transition: left 0.3s ease 0s
  261. ;
  262. transition: left 0.3s ease 0s
  263. ;
  264. }
  265. /* Focus */
  266. .ui.slider.checkbox input:focus ~ .box:before,
  267. .ui.slider.checkbox input:focus ~ label:before {
  268. background-color: rgba(0, 0, 0, 0.1);
  269. border: none;
  270. }
  271. /* Hover */
  272. .ui.slider.checkbox .box:hover,
  273. .ui.slider.checkbox label:hover {
  274. color: rgba(0, 0, 0, 0.8);
  275. }
  276. .ui.slider.checkbox .box:hover::before,
  277. .ui.slider.checkbox label:hover::before {
  278. background: rgba(0, 0, 0, 0.1);
  279. }
  280. /* Active */
  281. .ui.slider.checkbox input:checked ~ .box,
  282. .ui.slider.checkbox input:checked ~ label {
  283. color: rgba(0, 0, 0, 0.8);
  284. }
  285. .ui.slider.checkbox input:checked ~ .box:before,
  286. .ui.slider.checkbox input:checked ~ label:before {
  287. background-color: rgba(0, 0, 0, 0.1);
  288. }
  289. .ui.slider.checkbox input:checked ~ .box:after,
  290. .ui.slider.checkbox input:checked ~ label:after {
  291. left: 2rem;
  292. }
  293. /*--------------
  294. Toggle
  295. ---------------*/
  296. .ui.toggle.checkbox {
  297. cursor: pointer;
  298. height: 1.5rem;
  299. }
  300. .ui.toggle.checkbox .box,
  301. .ui.toggle.checkbox label {
  302. height: 1.5rem;
  303. padding-left: 4.5rem;
  304. line-height: 1.5rem;
  305. color: rgba(0, 0, 0, 0.8);
  306. }
  307. /* Switch */
  308. .ui.toggle.checkbox .box:before,
  309. .ui.toggle.checkbox label:before {
  310. cursor: pointer;
  311. display: block;
  312. position: absolute;
  313. content: '';
  314. top: 0rem;
  315. z-index: 1;
  316. border: none;
  317. background-color: rgba(0, 0, 0, 0.05);
  318. width: 3.5rem;
  319. height: 1.5rem;
  320. border-radius: 500rem;
  321. }
  322. /* Handle */
  323. .ui.toggle.checkbox .box:after,
  324. .ui.toggle.checkbox label:after {
  325. background: #ffffff -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05));
  326. background: #ffffff linear-gradient(transparent, rgba(0, 0, 0, 0.05));
  327. position: absolute;
  328. content: '';
  329. opacity: 1;
  330. z-index: 2;
  331. border: none;
  332. box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(39, 41, 43, 0.15) inset;
  333. width: 1.5rem;
  334. height: 1.5rem;
  335. top: 0rem;
  336. left: 0em;
  337. border-radius: 500rem;
  338. -webkit-transition: background 0.3s ease 0s,
  339. left 0.3s ease 0s
  340. ;
  341. transition: background 0.3s ease 0s,
  342. left 0.3s ease 0s
  343. ;
  344. }
  345. .ui.toggle.checkbox input ~ .box:after,
  346. .ui.toggle.checkbox input ~ label:after {
  347. left: -0.05rem;
  348. }
  349. /* Focus */
  350. .ui.toggle.checkbox input:focus ~ .box:before,
  351. .ui.toggle.checkbox input:focus ~ label:before {
  352. background-color: rgba(0, 0, 0, 0.1);
  353. border: none;
  354. }
  355. /* Hover */
  356. .ui.toggle.checkbox .box:hover::before,
  357. .ui.toggle.checkbox label:hover::before {
  358. background-color: rgba(0, 0, 0, 0.1);
  359. border: none;
  360. }
  361. /* Active */
  362. .ui.toggle.checkbox input:checked ~ .box,
  363. .ui.toggle.checkbox input:checked ~ label {
  364. color: #5bbd72;
  365. }
  366. .ui.toggle.checkbox input:checked ~ .box:before,
  367. .ui.toggle.checkbox input:checked ~ label:before {
  368. background-color: #5bbd72;
  369. }
  370. .ui.toggle.checkbox input:checked ~ .box:after,
  371. .ui.toggle.checkbox input:checked ~ label:after {
  372. left: 2.05rem;
  373. }
  374. /*******************************
  375. Variations
  376. *******************************/
  377. /*--------------
  378. Fitted
  379. ---------------*/
  380. .ui.fitted.checkbox .box,
  381. .ui.fitted.checkbox label {
  382. padding-left: 0em !important;
  383. }
  384. .ui.fitted.toggle.checkbox,
  385. .ui.fitted.toggle.checkbox {
  386. width: 3.5rem;
  387. }
  388. .ui.fitted.slider.checkbox,
  389. .ui.fitted.slider.checkbox {
  390. width: 3.5rem;
  391. }
  392. /*******************************
  393. Theme Overrides
  394. *******************************/
  395. @font-face {
  396. font-family: 'Checkbox';
  397. src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAOAIAAAwBgT1MvMj3hSQEAAADsAAAAVmNtYXDQEhm3AAABRAAAAUpjdnQgBkn/lAAABuwAAAAcZnBnbYoKeDsAAAcIAAAJkWdhc3AAAAAQAAAG5AAAAAhnbHlm32cEdgAAApAAAAC2aGVhZAErPHsAAANIAAAANmhoZWEHUwNNAAADgAAAACRobXR4CykAAAAAA6QAAAAMbG9jYQA4AFsAAAOwAAAACG1heHAApgm8AAADuAAAACBuYW1lzJ0aHAAAA9gAAALNcG9zdK69QJgAAAaoAAAAO3ByZXCSoZr/AAAQnAAAAFYAAQO4AZAABQAIAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA6ADoAQNS/2oAWgMLAE8AAAABAAAAAAAAAAAAAwAAAAMAAAAcAAEAAAAAAEQAAwABAAAAHAAEACgAAAAGAAQAAQACAADoAf//AAAAAOgA//8AABgBAAEAAAAAAAAAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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gRyCwAkVjsAFFYmCwAENhsAFDYzgtsC8ssQIAFiUgLiBHsAAjQrACJUmKikcjRyNhIFhiGyFZsAEjQrIuAQEVFCotsDAssAAWsAQlsAQlRyNHI2GwBkUrZYouIyAgPIo4LbAxLLAAFrAEJbAEJSAuRyNHI2EgsAQjQrAGRSsgsGB
  398. }
  399. .ui.checkbox label:before,
  400. .ui.checkbox .box:before,
  401. .ui.checkbox label:after,
  402. .ui.checkbox .box:after {
  403. font-family: 'Checkbox';
  404. }
  405. .ui.checkbox label:after,
  406. .ui.checkbox .box:after {
  407. content: '\e800';
  408. /* '' */
  409. }
  410. /* UTF Reference
  411. .check:before { content: '\e800'; }
  412. .circle:before { content: '\e801'; }
  413. .ok-circled:before { content: '\e806'; }
  414. .ok-circle:before { content: '\e805'; }
  415. .cancel-circle:before { content: '\e807'; }
  416. .cancel-circle-1:before { content: '\e804'; }
  417. .empty-circle:before { content: '\e802'; }
  418. .radio:before { content: '\e803'; }
  419. */
  420. /*******************************
  421. Site Overrides
  422. *******************************/