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.

487 lines
19 KiB

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