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.

827 lines
16 KiB

  1. /*
  2. * # Semantic - Label
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Label
  13. *******************************/
  14. .ui.label {
  15. display: inline-block;
  16. vertical-align: middle;
  17. margin: -0.25em 0.25em 0em;
  18. background-color: #E8E8E8;
  19. border-color: #E8E8E8;
  20. padding: 0.5em 0.8em;
  21. color: rgba(0, 0, 0, 0.65);
  22. text-transform: uppercase;
  23. font-weight: normal;
  24. -webkit-border-radius: 0.325em;
  25. -moz-border-radius: 0.325em;
  26. border-radius: 0.325em;
  27. -webkit-box-sizing: border-box;
  28. -moz-box-sizing: border-box;
  29. -ms-box-sizing: border-box;
  30. box-sizing: border-box;
  31. -webkit-transition:
  32. background 0.1s linear
  33. ;
  34. -moz-transition:
  35. background 0.1s linear
  36. ;
  37. -o-transition:
  38. background 0.1s linear
  39. ;
  40. -ms-transition:
  41. background 0.1s linear
  42. ;
  43. transition:
  44. background 0.1s linear
  45. ;
  46. }
  47. .ui.label:first-child {
  48. margin-right: 0em;
  49. }
  50. .ui.label:last-child {
  51. margin-left: 0em;
  52. }
  53. /* Link */
  54. a.ui.label {
  55. cursor: pointer;
  56. }
  57. /* Detail */
  58. .ui.label .detail {
  59. display: inline-block;
  60. margin-right: 0.5em;
  61. font-weight: bold;
  62. opacity: 0.8;
  63. }
  64. /* Icon */
  65. .ui.label .icon {
  66. width: auto;
  67. }
  68. /* Removable label */
  69. .ui.label .delete.icon {
  70. cursor: pointer;
  71. margin: 0em 0.5em 0em 0em;
  72. opacity: 0.7;
  73. -webkit-transition:
  74. background 0.1s linear
  75. ;
  76. -moz-transition:
  77. background 0.1s linear
  78. ;
  79. -o-transition:
  80. background 0.1s linear
  81. ;
  82. -ms-transition:
  83. background 0.1s linear
  84. ;
  85. transition:
  86. background 0.1s linear
  87. ;
  88. }
  89. .ui.label .delete.icon:hover {
  90. opacity: 0.99;
  91. }
  92. /*******************************
  93. Types
  94. *******************************/
  95. .ui.image.label {
  96. width: auto !important;
  97. margin-top: 0em;
  98. margin-bottom: 0em;
  99. padding-top: 0.4em;
  100. padding-bottom: 0.4em;
  101. line-height: 1.5em;
  102. vertical-align: baseline;
  103. text-transform: none;
  104. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  105. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  106. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  107. }
  108. .ui.image.label img {
  109. display: inline-block;
  110. height: 2.25em;
  111. margin: -0.4em -0.8em -0.4em 0.8em;
  112. vertical-align: top;
  113. -moz-border-radius: 0em 0.325em 0.325em 0em;
  114. -webkit-border-radius: 0em 0.325em 0.325em 0em;
  115. border-radius: 0em 0.325em 0.325em 0em;
  116. }
  117. /*******************************
  118. States
  119. *******************************/
  120. /*-------------------
  121. Disabled
  122. --------------------*/
  123. .ui.label.disabled {
  124. opacity: 0.5;
  125. }
  126. /*-------------------
  127. Hover
  128. --------------------*/
  129. a.ui.labels .label:hover,
  130. a.ui.label:hover {
  131. background-color: #E0E0E0;
  132. border-color: #E0E0E0;
  133. color: rgba(0, 0, 0, 0.7);
  134. }
  135. .ui.labels a.label:hover:before,
  136. a.ui.label:hover:before {
  137. background-color: #E0E0E0;
  138. color: rgba(0, 0, 0, 0.7);
  139. }
  140. /*-------------------
  141. Visible
  142. --------------------*/
  143. .ui.labels.visible .label,
  144. .ui.label.visible {
  145. display: inline-block !important;
  146. }
  147. /*-------------------
  148. Hidden
  149. --------------------*/
  150. .ui.labels.hidden .label,
  151. .ui.label.hidden {
  152. display: none !important;
  153. }
  154. /*******************************
  155. Variations
  156. *******************************/
  157. /*-------------------
  158. Tag
  159. --------------------*/
  160. .ui.tag.labels .label,
  161. .ui.tag.label {
  162. margin-right: 1em;
  163. position: relative;
  164. padding: 0.33em 1.4em 0.33em 1.3em;
  165. -webkit-border-radius: 3px 0px 0px 3px;
  166. -moz-border-radius: 3px 0px 0px 3px;
  167. border-radius: 3px 0px 0px 3px;
  168. }
  169. .ui.tag.labels .label:before,
  170. .ui.tag.label:before {
  171. position: absolute;
  172. top: 0.3em;
  173. right: 0.3em;
  174. content: '';
  175. margin-right: -1em;
  176. background-image: none;
  177. width: 1.5em;
  178. height: 1.5em;
  179. -webkit-transform: rotate(45deg);
  180. -moz-transform: rotate(45deg);
  181. transform: rotate(45deg);
  182. -webkit-transition:
  183. background 0.1s linear
  184. ;
  185. -moz-transition:
  186. background 0.1s linear
  187. ;
  188. -o-transition:
  189. background 0.1s linear
  190. ;
  191. -ms-transition:
  192. background 0.1s linear
  193. ;
  194. transition:
  195. background 0.1s linear
  196. ;
  197. }
  198. .ui.tag.labels .label:after,
  199. .ui.tag.label:after {
  200. position: absolute;
  201. content: '';
  202. top: 50%;
  203. right: -0.25em;
  204. margin-top: -0.3em;
  205. background-color: #FFFFFF;
  206. width: 0.55em;
  207. height: 0.55em;
  208. -webkit-box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  209. -moz-box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  210. box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  211. -moz-border-radius: 100px 100px 100px 100px;
  212. -webkit-border-radius: 100px 100px 100px 100px;
  213. border-radius: 100px 100px 100px 100px;
  214. }
  215. /*-------------------
  216. Ribbon
  217. --------------------*/
  218. .ui.ribbon.label {
  219. position: relative;
  220. right: -1.8rem;
  221. padding-right: 2rem;
  222. -webkit-border-radius: 4px 0px 0px 4px;
  223. -moz-border-radius: 4px 0px 0px 4px;
  224. border-radius: 4px 0px 0px 4px;
  225. }
  226. .ui.ribbon.label:after {
  227. position: absolute;
  228. content: "";
  229. top: 100%;
  230. right: 0%;
  231. border-top: 0em solid transparent;
  232. border-left-width: 1em;
  233. border-left-color: inherit;
  234. border-left-style: solid;
  235. border-bottom: 1em solid transparent;
  236. border-right: 0em solid transparent;
  237. width: 0em;
  238. height: 0em;
  239. }
  240. /*-------------------
  241. Attached
  242. --------------------*/
  243. .ui.top.attached.label,
  244. .ui.attached.label {
  245. width: 100%;
  246. position: absolute;
  247. margin: 0em;
  248. top: 0em;
  249. right: 0em;
  250. -webkit-border-radius: 4px 4px 0em 0em;
  251. -moz-border-radius: 4px 4px 0em 0em;
  252. border-radius: 4px 4px 0em 0em;
  253. }
  254. .ui.bottom.attached.label {
  255. top: auto;
  256. bottom: 0em;
  257. -webkit-border-radius: 0em 0em 4px 4px;
  258. -moz-border-radius: 0em 0em 4px 4px;
  259. border-radius: 0em 0em 4px 4px;
  260. }
  261. .ui.top.left.attached.label {
  262. width: auto;
  263. margin-top: 0em !important;
  264. -webkit-border-radius: 0em 4px 0em 4px;
  265. -moz-border-radius: 0em 4px 0em 4px;
  266. border-radius: 0em 4px 0em 4px;
  267. }
  268. .ui.top.right.attached.label {
  269. width: auto;
  270. right: auto;
  271. left: 0em;
  272. -webkit-border-radius: 4px 0em 4px 0em;
  273. -moz-border-radius: 4px 0em 4px 0em;
  274. border-radius: 4px 0em 4px 0em;
  275. }
  276. .ui.bottom.left.attached.label {
  277. width: auto;
  278. top: auto;
  279. bottom: 0em;
  280. -webkit-border-radius: 0em 4px 4px 0em;
  281. -moz-border-radius: 0em 4px 4px 0em;
  282. border-radius: 0em 4px 4px 0em;
  283. }
  284. .ui.bottom.right.attached.label {
  285. top: auto;
  286. bottom: 0em;
  287. right: auto;
  288. left: 0em;
  289. width: auto;
  290. -webkit-border-radius: 0em 4px 0em 4px;
  291. -moz-border-radius: 0em 4px 0em 4px;
  292. border-radius: 0em 4px 0em 4px;
  293. }
  294. /*-------------------
  295. Corner Label
  296. --------------------*/
  297. .ui.corner.label {
  298. background-color: transparent;
  299. position: absolute;
  300. top: 0em;
  301. left: 0em;
  302. z-index: 10;
  303. margin: 0em;
  304. font-size: 0.8125em;
  305. width: 2rem;
  306. height: 2rem;
  307. padding: 0em;
  308. text-align: center;
  309. -webkit-transition: color 0.2s ease;
  310. -moz-transition: color 0.2s ease;
  311. -o-transition: color 0.2s ease;
  312. -ms-transition: color 0.2s ease;
  313. transition: color 0.2s ease;
  314. }
  315. .ui.corner.label:after {
  316. position: absolute;
  317. content: "";
  318. left: 0em;
  319. top: 0em;
  320. z-index: -1;
  321. width: 0em;
  322. height: 0em;
  323. border-top: 0em solid transparent;
  324. border-left: 3em solid transparent;
  325. border-bottom: 3em solid transparent;
  326. border-right: 0em solid transparent;
  327. border-left-color: inherit;
  328. -webkit-transition: border-color 0.2s ease;
  329. -moz-transition: border-color 0.2s ease;
  330. -o-transition: border-color 0.2s ease;
  331. -ms-transition: border-color 0.2s ease;
  332. transition: border-color 0.2s ease;
  333. }
  334. .ui.corner.label .icon {
  335. margin: 0.4em 0.7em 0em 0em;
  336. }
  337. .ui.corner.label .text {
  338. display: inline-block;
  339. font-weight: bold;
  340. margin: 0.5em 0.6em 0em 0em;
  341. width: 2.5em;
  342. font-size: 0.82em;
  343. text-align: center;
  344. -webkit-transform: rotate(45deg);
  345. -moz-transform: rotate(45deg);
  346. -o-transform: rotate(45deg);
  347. -ms-transform: rotate(45deg);
  348. transform: rotate(45deg);
  349. }
  350. /* Left Corner */
  351. .ui.left.corner.label,
  352. .ui.left.corner.label:after {
  353. left: auto;
  354. right: 0em;
  355. }
  356. .ui.left.corner.label:after {
  357. border-top: 3em solid transparent;
  358. border-left: 3em solid transparent;
  359. border-bottom: 0em solid transparent;
  360. border-right: 0em solid transparent;
  361. border-top-color: inherit;
  362. }
  363. .ui.left.corner.label .icon {
  364. margin: 0.4em -0.7em 0em 0em;
  365. }
  366. .ui.left.corner.label .text {
  367. margin: 0.5em -0.6em 0em 0em;
  368. -webkit-transform: rotate(-45deg);
  369. -moz-transform: rotate(-45deg);
  370. -o-transform: rotate(-45deg);
  371. -ms-transform: rotate(-45deg);
  372. transform: rotate(-45deg);
  373. }
  374. /* Hover */
  375. .ui.corner.label:hover {
  376. background-color: transparent;
  377. }
  378. /*-------------------
  379. Fluid
  380. --------------------*/
  381. .ui.label.fluid,
  382. .ui.fluid.labels > .label {
  383. width: 100%;
  384. -webkit-box-sizing: border-box;
  385. -moz-box-sizing: border-box;
  386. -ms-box-sizing: border-box;
  387. box-sizing: border-box;
  388. }
  389. /*-------------------
  390. Inverted
  391. --------------------*/
  392. .ui.inverted.labels .label,
  393. .ui.inverted.label {
  394. color: #FFFFFF !important;
  395. }
  396. /*-------------------
  397. Colors
  398. --------------------*/
  399. /*--- Black ---*/
  400. .ui.black.labels .label,
  401. .ui.black.label {
  402. background-color: #5C6166 !important;
  403. border-color: #5C6166 !important;
  404. color: #FFFFFF !important;
  405. }
  406. .ui.labels .black.label:before,
  407. .ui.black.labels .label:before,
  408. .ui.black.label:before {
  409. background-color: #5C6166 !important;
  410. }
  411. /* Hover */
  412. a.ui.black.labels .label:hover,
  413. a.ui.black.label:hover {
  414. background-color: #888888 !important;
  415. border-color: #888888 !important;
  416. }
  417. .ui.labels a.black.label:hover:before,
  418. .ui.black.labels a.label:hover:before,
  419. a.ui.black.label:hover:before {
  420. background-color: #888888 !important;
  421. }
  422. /* Corner */
  423. .ui.black.corner.label,
  424. .ui.black.corner.label:hover {
  425. background-color: transparent !important;
  426. }
  427. /*--- Green ---*/
  428. .ui.green.labels .label,
  429. .ui.green.label {
  430. background-color: #A1CF64 !important;
  431. border-color: #A1CF64 !important;
  432. color: #FFFFFF !important;
  433. }
  434. .ui.labels .green.label:before,
  435. .ui.green.labels .label:before,
  436. .ui.green.label:before {
  437. background-color: #A1CF64 !important;
  438. }
  439. /* Hover */
  440. a.ui.green.labels .label:hover,
  441. a.ui.green.label:hover {
  442. background-color: #89B84C !important;
  443. border-color: #89B84C !important;
  444. }
  445. .ui.labels a.green.label:hover:before,
  446. .ui.green.labels a.label:hover:before,
  447. a.ui.green.label:hover:before {
  448. background-color: #89B84C !important;
  449. }
  450. /* Corner */
  451. .ui.green.corner.label,
  452. .ui.green.corner.label:hover {
  453. background-color: transparent !important;
  454. }
  455. /*--- Red ---*/
  456. .ui.red.labels .label,
  457. .ui.red.label {
  458. background-color: #D95C5C !important;
  459. border-color: #D95C5C !important;
  460. color: #FFFFFF !important;
  461. }
  462. .ui.labels .red.label:before,
  463. .ui.red.labels .label:before,
  464. .ui.red.label:before {
  465. background-color: #D95C5C !important;
  466. }
  467. /* Corner */
  468. .ui.red.corner.label,
  469. .ui.red.corner.label:hover {
  470. background-color: transparent !important;
  471. }
  472. /* Hover */
  473. a.ui.red.labels .label:hover,
  474. a.ui.red.label:hover{
  475. background-color: #DE3859 !important;
  476. border-color: #DE3859 !important;
  477. color: #FFFFFF !important;
  478. }
  479. .ui.labels a.red.label:hover:before,
  480. .ui.red.labels a.label:hover:before,
  481. a.ui.red.label:hover:before {
  482. background-color: #DE3859 !important;
  483. }
  484. /*--- Blue ---*/
  485. .ui.blue.labels .label,
  486. .ui.blue.label {
  487. background-color: #6ECFF5 !important;
  488. border-color: #6ECFF5 !important;
  489. color: #FFFFFF !important;
  490. }
  491. .ui.labels .blue.label:before,
  492. .ui.blue.labels .label:before,
  493. .ui.blue.label:before {
  494. background-color: #6ECFF5 !important;
  495. }
  496. /* Hover */
  497. a.ui.blue.labels .label:hover,
  498. .ui.blue.labels a.label:hover,
  499. a.ui.blue.label:hover {
  500. background-color: #1AB8F3 !important;
  501. border-color: #1AB8F3 !important;
  502. color: #FFFFFF !important;
  503. }
  504. .ui.labels a.blue.label:hover:before,
  505. .ui.blue.labels a.label:hover:before,
  506. a.ui.blue.label:hover:before {
  507. background-color: #1AB8F3 !important;
  508. }
  509. /* Corner */
  510. .ui.blue.corner.label,
  511. .ui.blue.corner.label:hover {
  512. background-color: transparent !important;
  513. }
  514. /*--- Purple ---*/
  515. .ui.purple.labels .label,
  516. .ui.purple.label {
  517. background-color: #564F8A !important;
  518. border-color: #564F8A !important;
  519. color: #FFFFFF !important;
  520. }
  521. .ui.labels .purple.label:before,
  522. .ui.purple.labels .label:before,
  523. .ui.purple.label:before {
  524. background-color: #564F8A !important;
  525. }
  526. /* Hover */
  527. a.ui.purple.labels .label:hover,
  528. .ui.purple.labels a.label:hover,
  529. a.ui.purple.label:hover {
  530. background-color: #3E3773 !important;
  531. border-color: #3E3773 !important;
  532. color: #FFFFFF !important;
  533. }
  534. .ui.labels a.purple.label:hover:before,
  535. .ui.purple.labels a.label:hover:before,
  536. a.ui.purple.label:hover:before {
  537. background-color: #3E3773 !important;
  538. }
  539. /* Corner */
  540. .ui.purple.corner.label,
  541. .ui.purple.corner.label:hover {
  542. background-color: transparent !important;
  543. }
  544. /*--- Pink ---*/
  545. .ui.teal.labels .label,
  546. .ui.teal.label {
  547. background-color: #00B5AD !important;
  548. border-color: #00B5AD !important;
  549. color: #FFFFFF !important;
  550. }
  551. .ui.labels .teal.label:before,
  552. .ui.teal.labels .label:before,
  553. .ui.teal.label:before {
  554. background-color: #00B5AD !important;
  555. }
  556. /* Hover */
  557. a.ui.teal.labels .label:hover,
  558. .ui.teal.labels a.label:hover,
  559. a.ui.teal.label:hover {
  560. background-color: #009A93 !important;
  561. border-color: #009A93 !important;
  562. color: #FFFFFF !important;
  563. }
  564. .ui.labels a.teal.label:hover:before,
  565. .ui.teal.labels a.label:hover:before,
  566. a.ui.teal.label:hover:before {
  567. background-color: #009A93 !important;
  568. }
  569. /* Corner */
  570. .ui.teal.corner.label,
  571. .ui.teal.corner.label:hover {
  572. background-color: transparent !important;
  573. }
  574. /*-------------------
  575. Horizontal
  576. --------------------*/
  577. .ui.horizontal.labels .label,
  578. .ui.horizontal.label {
  579. margin: -0.125em 0em -0.125em 0.5em;
  580. padding: 0.35em 1em;
  581. min-width: 6em;
  582. text-align: center;
  583. }
  584. /*-------------------
  585. Circular
  586. --------------------*/
  587. .ui.circular.labels .label,
  588. .ui.circular.label {
  589. min-height: 1em;
  590. max-height: 2em;
  591. padding: 0.5em !important;
  592. line-height: 1em;
  593. text-align: center;
  594. -webkit-border-radius: 500rem;
  595. -moz-border-radius: 500rem;
  596. border-radius: 500rem;
  597. }
  598. /*-------------------
  599. Pointing
  600. --------------------*/
  601. .ui.pointing.label {
  602. position: relative;
  603. }
  604. .ui.attached.pointing.label {
  605. position: absolute;
  606. }
  607. .ui.pointing.label:before {
  608. position: absolute;
  609. content: "";
  610. width: 0.6em;
  611. height: 0.6em;
  612. background-image: none;
  613. -webkit-transform: rotate(45deg);
  614. -moz-transform: rotate(45deg);
  615. transform: rotate(45deg);
  616. z-index: 2;
  617. -webkit-transition:
  618. background 0.1s linear
  619. ;
  620. -moz-transition:
  621. background 0.1s linear
  622. ;
  623. -o-transition:
  624. background 0.1s linear
  625. ;
  626. -ms-transition:
  627. background 0.1s linear
  628. ;
  629. transition:
  630. background 0.1s linear
  631. ;
  632. }
  633. /*--- Above ---*/
  634. .ui.pointing.label:before {
  635. background-color: #E8E8E8;
  636. }
  637. .ui.pointing.label,
  638. .ui.pointing.above.label {
  639. margin-top: 1em;
  640. }
  641. .ui.pointing.label:before,
  642. .ui.pointing.above.label:before {
  643. margin-right: -0.3em;
  644. top: -0.3em;
  645. right: 50%;
  646. }
  647. /*--- Below ---*/
  648. .ui.pointing.below.label {
  649. margin-top: 0em;
  650. margin-bottom: 1em;
  651. }
  652. .ui.pointing.below.label:before {
  653. margin-right: -0.3em;
  654. top: auto;
  655. left: auto;
  656. bottom: -0.3em;
  657. right: 50%;
  658. }
  659. /*--- Left ---*/
  660. .ui.pointing.left.label {
  661. margin-top: 0em;
  662. margin-right: 1em;
  663. }
  664. .ui.pointing.left.label:before {
  665. margin-top: -0.3em;
  666. bottom: auto;
  667. left: auto;
  668. top: 50%;
  669. right: 0em;
  670. }
  671. /*--- Right ---*/
  672. .ui.pointing.right.label {
  673. margin-top: 0em;
  674. margin-left: 1em;
  675. }
  676. .ui.pointing.right.label:before {
  677. margin-top: -0.3em;
  678. left: -0.3em;
  679. top: 50%;
  680. bottom: auto;
  681. right: auto;
  682. }
  683. /*------------------
  684. Floating Label
  685. -------------------*/
  686. .ui.floating.label {
  687. position: absolute;
  688. z-index: 100;
  689. top: -1em;
  690. right: 100%;
  691. margin: 0em -1.5em 0em 0em !important;
  692. }
  693. /*-------------------
  694. Sizes
  695. --------------------*/
  696. .ui.small.labels .label,
  697. .ui.small.label {
  698. font-size: 0.75rem;
  699. }
  700. .ui.label {
  701. font-size: 0.8125rem;
  702. }
  703. .ui.large.labels .label,
  704. .ui.large.label {
  705. font-size: 0.875rem;
  706. }
  707. .ui.huge.labels .label,
  708. .ui.huge.label {
  709. font-size: 1rem;
  710. }