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.

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