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.

624 lines
15 KiB

  1. /*!
  2. * # Semantic UI 2.1.6 - Checkbox
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 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. -webkit-backface-visibility: hidden;
  21. backface-visibility: hidden;
  22. outline: none;
  23. vertical-align: baseline;
  24. font-style: normal;
  25. min-height: 17px;
  26. font-size: 1rem;
  27. line-height: 17px;
  28. min-width: 17px;
  29. }
  30. /* HTML Checkbox */
  31. .ui.checkbox input[type="checkbox"],
  32. .ui.checkbox input[type="radio"] {
  33. cursor: pointer;
  34. position: absolute;
  35. top: 0px;
  36. left: 0px;
  37. opacity: 0 !important;
  38. outline: none;
  39. z-index: 3;
  40. width: 17px;
  41. height: 17px;
  42. }
  43. /*--------------
  44. Box
  45. ---------------*/
  46. .ui.checkbox .box,
  47. .ui.checkbox label {
  48. cursor: auto;
  49. position: relative;
  50. display: block;
  51. padding-left: 1.85714em;
  52. outline: none;
  53. font-size: 1em;
  54. }
  55. .ui.checkbox .box:before,
  56. .ui.checkbox label:before {
  57. position: absolute;
  58. top: 0px;
  59. left: 0px;
  60. width: 17px;
  61. height: 17px;
  62. content: '';
  63. background: #FFFFFF;
  64. border-radius: 0.21428571rem;
  65. -webkit-transition: border 0.1s ease, opacity 0.1s ease, -webkit-transform 0.1s ease, box-shadow 0.1s ease;
  66. transition: border 0.1s ease, opacity 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
  67. border: 1px solid #D4D4D5;
  68. }
  69. /*--------------
  70. Checkmark
  71. ---------------*/
  72. .ui.checkbox .box:after,
  73. .ui.checkbox label:after {
  74. position: absolute;
  75. font-size: 14px;
  76. top: 0px;
  77. left: 0px;
  78. width: 17px;
  79. height: 17px;
  80. text-align: center;
  81. opacity: 0;
  82. color: rgba(0, 0, 0, 0.87);
  83. -webkit-transition: border 0.1s ease, opacity 0.1s ease, -webkit-transform 0.1s ease, box-shadow 0.1s ease;
  84. transition: border 0.1s ease, opacity 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
  85. }
  86. /*--------------
  87. Label
  88. ---------------*/
  89. /* Inside */
  90. .ui.checkbox label,
  91. .ui.checkbox + label {
  92. color: rgba(0, 0, 0, 0.87);
  93. -webkit-transition: color 0.1s ease;
  94. transition: color 0.1s ease;
  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-color: rgba(34, 36, 38, 0.35);
  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: #F9FAFB;
  121. border-color: rgba(34, 36, 38, 0.35);
  122. }
  123. .ui.checkbox .box:active::after,
  124. .ui.checkbox label:active::after {
  125. color: rgba(0, 0, 0, 0.95);
  126. }
  127. .ui.checkbox input:active ~ label {
  128. color: rgba(0, 0, 0, 0.95);
  129. }
  130. /*--------------
  131. Focus
  132. ---------------*/
  133. .ui.checkbox input:focus ~ .box:before,
  134. .ui.checkbox input:focus ~ label:before {
  135. background: #FFFFFF;
  136. border-color: #96C8DA;
  137. }
  138. .ui.checkbox input:focus ~ .box:after,
  139. .ui.checkbox input:focus ~ label:after {
  140. color: rgba(0, 0, 0, 0.95);
  141. }
  142. .ui.checkbox input:focus ~ label {
  143. color: rgba(0, 0, 0, 0.95);
  144. }
  145. /*--------------
  146. Active
  147. ---------------*/
  148. .ui.checkbox input:checked ~ .box:before,
  149. .ui.checkbox input:checked ~ label:before {
  150. background: #FFFFFF;
  151. border-color: rgba(34, 36, 38, 0.35);
  152. }
  153. .ui.checkbox input:checked ~ .box:after,
  154. .ui.checkbox input:checked ~ label:after {
  155. opacity: 1;
  156. color: rgba(0, 0, 0, 0.95);
  157. }
  158. /*--------------
  159. Indeterminate
  160. ---------------*/
  161. .ui.checkbox input:indeterminate ~ .box:before,
  162. .ui.checkbox input:indeterminate ~ label:before {
  163. background: #FFFFFF;
  164. border-color: rgba(34, 36, 38, 0.35);
  165. }
  166. .ui.checkbox input:indeterminate ~ .box:after,
  167. .ui.checkbox input:indeterminate ~ label:after {
  168. opacity: 1;
  169. color: rgba(0, 0, 0, 0.95);
  170. }
  171. /*--------------
  172. Active Focus
  173. ---------------*/
  174. .ui.checkbox input:indeterminate:focus ~ .box:before,
  175. .ui.checkbox input:indeterminate:focus ~ label:before,
  176. .ui.checkbox input:checked:focus ~ .box:before,
  177. .ui.checkbox input:checked:focus ~ label:before {
  178. background: #FFFFFF;
  179. border-color: #96C8DA;
  180. }
  181. .ui.checkbox input:indeterminate:focus ~ .box:after,
  182. .ui.checkbox input:indeterminate:focus ~ label:after,
  183. .ui.checkbox input:checked:focus ~ .box:after,
  184. .ui.checkbox input:checked:focus ~ label:after {
  185. color: rgba(0, 0, 0, 0.95);
  186. }
  187. /*--------------
  188. Read-Only
  189. ---------------*/
  190. .ui.read-only.checkbox,
  191. .ui.read-only.checkbox label {
  192. cursor: default;
  193. }
  194. /*--------------
  195. Disabled
  196. ---------------*/
  197. .ui.disabled.checkbox .box:after,
  198. .ui.disabled.checkbox label,
  199. .ui.checkbox input[disabled] ~ .box:after,
  200. .ui.checkbox input[disabled] ~ label {
  201. cursor: default;
  202. opacity: 0.5;
  203. color: #000000;
  204. }
  205. /*--------------
  206. Hidden
  207. ---------------*/
  208. /* Initialized checkbox moves input below element
  209. to prevent manually triggering */
  210. .ui.checkbox input.hidden {
  211. z-index: -1;
  212. }
  213. /* Selectable Label */
  214. .ui.checkbox input.hidden + label {
  215. cursor: pointer;
  216. -webkit-user-select: none;
  217. -moz-user-select: none;
  218. -ms-user-select: none;
  219. user-select: none;
  220. }
  221. /*******************************
  222. Types
  223. *******************************/
  224. /*--------------
  225. Radio
  226. ---------------*/
  227. .ui.radio.checkbox {
  228. min-height: 15px;
  229. }
  230. .ui.radio.checkbox .box,
  231. .ui.radio.checkbox label {
  232. padding-left: 1.85714em;
  233. }
  234. /* Box */
  235. .ui.radio.checkbox .box:before,
  236. .ui.radio.checkbox label:before {
  237. content: '';
  238. -webkit-transform: none;
  239. -ms-transform: none;
  240. transform: none;
  241. width: 15px;
  242. height: 15px;
  243. border-radius: 500rem;
  244. top: 1px;
  245. left: 0px;
  246. }
  247. /* Bullet */
  248. .ui.radio.checkbox .box:after,
  249. .ui.radio.checkbox label:after {
  250. border: none;
  251. content: '' !important;
  252. width: 15px;
  253. height: 15px;
  254. line-height: 15px;
  255. }
  256. /* Radio Checkbox */
  257. .ui.radio.checkbox .box:after,
  258. .ui.radio.checkbox label:after {
  259. top: 1px;
  260. left: 0px;
  261. width: 15px;
  262. height: 15px;
  263. border-radius: 500rem;
  264. -webkit-transform: scale(0.46666667);
  265. -ms-transform: scale(0.46666667);
  266. transform: scale(0.46666667);
  267. background-color: rgba(0, 0, 0, 0.87);
  268. }
  269. /* Focus */
  270. .ui.radio.checkbox input:focus ~ .box:before,
  271. .ui.radio.checkbox input:focus ~ label:before {
  272. background-color: #FFFFFF;
  273. }
  274. .ui.radio.checkbox input:focus ~ .box:after,
  275. .ui.radio.checkbox input:focus ~ label:after {
  276. background-color: rgba(0, 0, 0, 0.95);
  277. }
  278. /* Indeterminate */
  279. .ui.radio.checkbox input:indeterminate ~ .box:after,
  280. .ui.radio.checkbox input:indeterminate ~ label:after {
  281. opacity: 0;
  282. }
  283. /* Active */
  284. .ui.radio.checkbox input:checked ~ .box:before,
  285. .ui.radio.checkbox input:checked ~ label:before {
  286. background-color: #FFFFFF;
  287. }
  288. .ui.radio.checkbox input:checked ~ .box:after,
  289. .ui.radio.checkbox input:checked ~ label:after {
  290. background-color: rgba(0, 0, 0, 0.95);
  291. }
  292. /* Active Focus */
  293. .ui.radio.checkbox input:focus:checked ~ .box:before,
  294. .ui.radio.checkbox input:focus:checked ~ label:before {
  295. background-color: #FFFFFF;
  296. }
  297. .ui.radio.checkbox input:focus:checked ~ .box:after,
  298. .ui.radio.checkbox input:focus:checked ~ label:after {
  299. background-color: rgba(0, 0, 0, 0.95);
  300. }
  301. /*--------------
  302. Slider
  303. ---------------*/
  304. .ui.slider.checkbox {
  305. min-height: 1.25rem;
  306. }
  307. /* Input */
  308. .ui.slider.checkbox input {
  309. width: 3.5rem;
  310. height: 1.25rem;
  311. }
  312. /* Label */
  313. .ui.slider.checkbox .box,
  314. .ui.slider.checkbox label {
  315. padding-left: 4.5rem;
  316. line-height: 1rem;
  317. color: rgba(0, 0, 0, 0.4);
  318. }
  319. /* Line */
  320. .ui.slider.checkbox .box:before,
  321. .ui.slider.checkbox label:before {
  322. display: block;
  323. position: absolute;
  324. content: '';
  325. border: none !important;
  326. left: 0em;
  327. z-index: 1;
  328. top: 0.4rem;
  329. background-color: rgba(0, 0, 0, 0.05);
  330. width: 3.5rem;
  331. height: 0.21428571rem;
  332. -webkit-transform: none;
  333. -ms-transform: none;
  334. transform: none;
  335. border-radius: 500rem;
  336. -webkit-transition: background 0.3s ease;
  337. transition: background 0.3s ease;
  338. }
  339. /* Handle */
  340. .ui.slider.checkbox .box:after,
  341. .ui.slider.checkbox label:after {
  342. background: #FFFFFF -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05));
  343. background: #FFFFFF linear-gradient(transparent, rgba(0, 0, 0, 0.05));
  344. position: absolute;
  345. content: '' !important;
  346. opacity: 1;
  347. z-index: 2;
  348. border: none;
  349. box-shadow: 0px 1px 2px 0 rgba(34, 36, 38, 0.15), 0px 0px 0px 1px rgba(34, 36, 38, 0.15) inset;
  350. width: 1.5rem;
  351. height: 1.5rem;
  352. top: -0.25rem;
  353. left: 0em;
  354. -webkit-transform: none;
  355. -ms-transform: none;
  356. transform: none;
  357. border-radius: 500rem;
  358. -webkit-transition: left 0.3s ease;
  359. transition: left 0.3s ease;
  360. }
  361. /* Focus */
  362. .ui.slider.checkbox input:focus ~ .box:before,
  363. .ui.slider.checkbox input:focus ~ label:before {
  364. background-color: rgba(0, 0, 0, 0.15);
  365. border: none;
  366. }
  367. /* Hover */
  368. .ui.slider.checkbox .box:hover,
  369. .ui.slider.checkbox label:hover {
  370. color: rgba(0, 0, 0, 0.8);
  371. }
  372. .ui.slider.checkbox .box:hover::before,
  373. .ui.slider.checkbox label:hover::before {
  374. background: rgba(0, 0, 0, 0.15);
  375. }
  376. /* Active */
  377. .ui.slider.checkbox input:checked ~ .box,
  378. .ui.slider.checkbox input:checked ~ label {
  379. color: rgba(0, 0, 0, 0.95) !important;
  380. }
  381. .ui.slider.checkbox input:checked ~ .box:before,
  382. .ui.slider.checkbox input:checked ~ label:before {
  383. background-color: #545454 !important;
  384. }
  385. .ui.slider.checkbox input:checked ~ .box:after,
  386. .ui.slider.checkbox input:checked ~ label:after {
  387. left: 2rem;
  388. }
  389. /* Active Focus */
  390. .ui.slider.checkbox input:focus:checked ~ .box,
  391. .ui.slider.checkbox input:focus:checked ~ label {
  392. color: rgba(0, 0, 0, 0.95) !important;
  393. }
  394. .ui.slider.checkbox input:focus:checked ~ .box:before,
  395. .ui.slider.checkbox input:focus:checked ~ label:before {
  396. background-color: #000000 !important;
  397. }
  398. /*--------------
  399. Toggle
  400. ---------------*/
  401. .ui.toggle.checkbox {
  402. min-height: 1.5rem;
  403. }
  404. /* Input */
  405. .ui.toggle.checkbox input {
  406. width: 3.5rem;
  407. height: 1.5rem;
  408. }
  409. /* Label */
  410. .ui.toggle.checkbox .box,
  411. .ui.toggle.checkbox label {
  412. min-height: 1.5rem;
  413. padding-left: 4.5rem;
  414. color: rgba(0, 0, 0, 0.87);
  415. }
  416. .ui.toggle.checkbox label {
  417. padding-top: 0.15em;
  418. }
  419. /* Switch */
  420. .ui.toggle.checkbox .box:before,
  421. .ui.toggle.checkbox label:before {
  422. display: block;
  423. position: absolute;
  424. content: '';
  425. z-index: 1;
  426. -webkit-transform: none;
  427. -ms-transform: none;
  428. transform: none;
  429. border: none;
  430. top: 0rem;
  431. background: rgba(0, 0, 0, 0.05);
  432. width: 3.5rem;
  433. height: 1.5rem;
  434. border-radius: 500rem;
  435. }
  436. /* Handle */
  437. .ui.toggle.checkbox .box:after,
  438. .ui.toggle.checkbox label:after {
  439. background: #FFFFFF -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05));
  440. background: #FFFFFF linear-gradient(transparent, rgba(0, 0, 0, 0.05));
  441. position: absolute;
  442. content: '' !important;
  443. opacity: 1;
  444. z-index: 2;
  445. border: none;
  446. box-shadow: 0px 1px 2px 0 rgba(34, 36, 38, 0.15), 0px 0px 0px 1px rgba(34, 36, 38, 0.15) inset;
  447. width: 1.5rem;
  448. height: 1.5rem;
  449. top: 0rem;
  450. left: 0em;
  451. border-radius: 500rem;
  452. -webkit-transition: background 0.3s ease, left 0.3s ease;
  453. transition: background 0.3s ease, left 0.3s ease;
  454. }
  455. .ui.toggle.checkbox input ~ .box:after,
  456. .ui.toggle.checkbox input ~ label:after {
  457. left: -0.05rem;
  458. }
  459. /* Focus */
  460. .ui.toggle.checkbox input:focus ~ .box:before,
  461. .ui.toggle.checkbox input:focus ~ label:before {
  462. background-color: rgba(0, 0, 0, 0.15);
  463. border: none;
  464. }
  465. /* Hover */
  466. .ui.toggle.checkbox .box:hover::before,
  467. .ui.toggle.checkbox label:hover::before {
  468. background-color: rgba(0, 0, 0, 0.15);
  469. border: none;
  470. }
  471. /* Active */
  472. .ui.toggle.checkbox input:checked ~ .box,
  473. .ui.toggle.checkbox input:checked ~ label {
  474. color: rgba(0, 0, 0, 0.95) !important;
  475. }
  476. .ui.toggle.checkbox input:checked ~ .box:before,
  477. .ui.toggle.checkbox input:checked ~ label:before {
  478. background-color: #2185D0 !important;
  479. }
  480. .ui.toggle.checkbox input:checked ~ .box:after,
  481. .ui.toggle.checkbox input:checked ~ label:after {
  482. left: 2.15rem;
  483. }
  484. /* Active Focus */
  485. .ui.toggle.checkbox input:focus:checked ~ .box,
  486. .ui.toggle.checkbox input:focus:checked ~ label {
  487. color: rgba(0, 0, 0, 0.95) !important;
  488. }
  489. .ui.toggle.checkbox input:focus:checked ~ .box:before,
  490. .ui.toggle.checkbox input:focus:checked ~ label:before {
  491. background-color: #0d71bb !important;
  492. }
  493. /*******************************
  494. Variations
  495. *******************************/
  496. /*--------------
  497. Fitted
  498. ---------------*/
  499. .ui.fitted.checkbox .box,
  500. .ui.fitted.checkbox label {
  501. padding-left: 0em !important;
  502. }
  503. .ui.fitted.toggle.checkbox,
  504. .ui.fitted.toggle.checkbox {
  505. width: 3.5rem;
  506. }
  507. .ui.fitted.slider.checkbox,
  508. .ui.fitted.slider.checkbox {
  509. width: 3.5rem;
  510. }
  511. /*******************************
  512. Theme Overrides
  513. *******************************/
  514. @font-face {
  515. font-family: 'Checkbox';
  516. src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBD8AAAC8AAAAYGNtYXAYVtCJAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5Zn4huwUAAAF4AAABYGhlYWQGPe1ZAAAC2AAAADZoaGVhB30DyAAAAxAAAAAkaG10eBBKAEUAAAM0AAAAHGxvY2EAmgESAAADUAAAABBtYXhwAAkALwAAA2AAAAAgbmFtZSC8IugAAAOAAAABknBvc3QAAwAAAAAFFAAAACAAAwMTAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADoAgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAAC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ZQBjAGsAYgBvAHhDaGVja2JveABDAGgAZQBjAGsAYgBvAHhSZWd1bGFyAFIAZQBnAHUAbABhAHJDaGVja2JveABDAGgAZQBjAGsAYgBvAHhGb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('truetype');
  517. }
  518. /* Checkmark */
  519. .ui.checkbox label:after,
  520. .ui.checkbox .box:after {
  521. font-family: 'Checkbox';
  522. }
  523. /* Checked */
  524. .ui.checkbox input:checked ~ .box:after,
  525. .ui.checkbox input:checked ~ label:after {
  526. content: '\e800';
  527. }
  528. /* Indeterminate */
  529. .ui.checkbox input:indeterminate ~ .box:after,
  530. .ui.checkbox input:indeterminate ~ label:after {
  531. font-size: 12px;
  532. content: '\e801';
  533. }
  534. /* UTF Reference
  535. .check:before { content: '\e800'; }
  536. .dash:before { content: '\e801'; }
  537. .plus:before { content: '\e802'; }
  538. */
  539. /*******************************
  540. Site Overrides
  541. *******************************/