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.

895 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-right: 0em;
  34. }
  35. .ui.label:last-child {
  36. margin-left: 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-right: 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 0.5em 0em 0em;
  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: 0em 0.325em 0.325em 0em;
  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-right: 1em;
  154. position: relative;
  155. padding: 0.33em 1.4em 0.33em 1.3em;
  156. border-radius: 3px 0px 0px 3px;
  157. }
  158. .ui.tag.labels .label:before,
  159. .ui.tag.label:before {
  160. position: absolute;
  161. top: 0.3em;
  162. right: 0.3em;
  163. content: '';
  164. margin-right: -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. right: -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. right: -2rem;
  195. padding-right: 2rem;
  196. border-radius: 4px 0px 0px 4px;
  197. border-color: rgba(0, 0, 0, 0.15);
  198. }
  199. .ui.ribbon.label:after {
  200. position: absolute;
  201. content: "";
  202. top: 100%;
  203. right: 0%;
  204. border-top: 0em solid transparent;
  205. border-left-width: 1em;
  206. border-left-color: inherit;
  207. border-left-style: solid;
  208. border-bottom: 1em solid transparent;
  209. border-right: 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. right: 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: 0em 4px 0em 4px;
  235. }
  236. .ui.top.right.attached.label {
  237. width: auto;
  238. right: auto;
  239. left: 0em;
  240. border-radius: 4px 0em 4px 0em;
  241. }
  242. .ui.bottom.left.attached.label {
  243. width: auto;
  244. top: auto;
  245. bottom: 0em;
  246. border-radius: 0em 4px 4px 0em;
  247. }
  248. .ui.bottom.right.attached.label {
  249. top: auto;
  250. bottom: 0em;
  251. right: auto;
  252. left: 0em;
  253. width: auto;
  254. border-radius: 0em 4px 0em 4px;
  255. }
  256. /*-------------------
  257. Corner Label
  258. --------------------*/
  259. .ui.corner.label {
  260. background-color: transparent;
  261. position: absolute;
  262. top: 0em;
  263. left: 0em;
  264. z-index: 10;
  265. margin: 0em;
  266. width: 3em;
  267. height: 3em;
  268. padding: 0em;
  269. text-align: center;
  270. -webkit-transition: color 0.2s ease;
  271. transition: color 0.2s ease;
  272. }
  273. .ui.corner.label:after {
  274. position: absolute;
  275. content: "";
  276. left: 0em;
  277. top: 0em;
  278. z-index: -1;
  279. width: 0em;
  280. height: 0em;
  281. border-top: 0em solid transparent;
  282. border-left: 3em solid transparent;
  283. border-bottom: 3em solid transparent;
  284. border-right: 0em solid transparent;
  285. border-left-color: inherit;
  286. -webkit-transition: border-color 0.2s ease;
  287. transition: border-color 0.2s ease;
  288. }
  289. .ui.corner.label .icon {
  290. font-size: 0.875em;
  291. margin: 0.5em 1.25em 0em 0em;
  292. }
  293. .ui.corner.label .text {
  294. display: inline-block;
  295. font-weight: bold;
  296. margin: 0.5em 1em 0em 0em;
  297. width: 2.5em;
  298. font-size: 0.875em;
  299. text-align: center;
  300. -webkit-transform: rotate(45deg);
  301. -ms-transform: rotate(45deg);
  302. transform: rotate(45deg);
  303. }
  304. /* Coupling */
  305. .ui.rounded.image > .ui.corner.label,
  306. .ui.input > .ui.corner.label,
  307. .ui.segment > .ui.corner.label {
  308. overflow: hidden;
  309. }
  310. .ui.segment > .ui.corner.label {
  311. top: -1px;
  312. left: -1px;
  313. }
  314. .ui.segment > .ui.left.corner.label {
  315. left: auto;
  316. right: -1px;
  317. }
  318. .ui.input > .ui.corner.label {
  319. top: 1px;
  320. left: 1px;
  321. }
  322. .ui.input > .ui.right.corner.label {
  323. left: auto;
  324. right: 1px;
  325. }
  326. /* Left Corner */
  327. .ui.left.corner.label,
  328. .ui.left.corner.label:after {
  329. left: auto;
  330. right: 0em;
  331. }
  332. .ui.left.corner.label:after {
  333. border-top: 3em solid transparent;
  334. border-left: 3em solid transparent;
  335. border-bottom: 0em solid transparent;
  336. border-right: 0em solid transparent;
  337. border-top-color: inherit;
  338. }
  339. .ui.left.corner.label .icon {
  340. margin: 0.5em -1em 0em 0em;
  341. }
  342. .ui.left.corner.label .text {
  343. margin: 0.5em -1em 0em 0em;
  344. -webkit-transform: rotate(-45deg);
  345. -ms-transform: rotate(-45deg);
  346. transform: rotate(-45deg);
  347. }
  348. /* Hover */
  349. .ui.corner.label:hover {
  350. background-color: transparent;
  351. }
  352. /*-------------------
  353. Fluid
  354. --------------------*/
  355. .ui.label.fluid,
  356. .ui.fluid.labels > .label {
  357. width: 100%;
  358. -webkit-box-sizing: border-box;
  359. -moz-box-sizing: border-box;
  360. -ms-box-sizing: border-box;
  361. box-sizing: border-box;
  362. }
  363. /*-------------------
  364. Inverted
  365. --------------------*/
  366. .ui.inverted.labels .label,
  367. .ui.inverted.label {
  368. color: #FFFFFF !important;
  369. }
  370. /*-------------------
  371. Colors
  372. --------------------*/
  373. /*--- Black ---*/
  374. .ui.black.labels .label,
  375. .ui.black.label {
  376. background-color: #5C6166 !important;
  377. border-color: #5C6166 !important;
  378. color: #FFFFFF !important;
  379. }
  380. .ui.labels .black.label:before,
  381. .ui.black.labels .label:before,
  382. .ui.black.label:before {
  383. background-color: #5C6166 !important;
  384. }
  385. /* Hover */
  386. a.ui.black.labels .label:hover,
  387. a.ui.black.label:hover {
  388. background-color: #333333 !important;
  389. border-color: #333333 !important;
  390. }
  391. .ui.labels a.black.label:hover:before,
  392. .ui.black.labels a.label:hover:before,
  393. a.ui.black.label:hover:before {
  394. background-color: #333333 !important;
  395. }
  396. /* Corner */
  397. .ui.black.corner.label,
  398. .ui.black.corner.label:hover {
  399. background-color: transparent !important;
  400. }
  401. /* Ribbon */
  402. .ui.black.ribbon.label {
  403. border-color: #333333 !important;
  404. }
  405. /*--- Green ---*/
  406. .ui.green.labels .label,
  407. .ui.green.label {
  408. background-color: #A1CF64 !important;
  409. border-color: #A1CF64 !important;
  410. color: #FFFFFF !important;
  411. }
  412. .ui.labels .green.label:before,
  413. .ui.green.labels .label:before,
  414. .ui.green.label:before {
  415. background-color: #A1CF64 !important;
  416. }
  417. /* Hover */
  418. a.ui.green.labels .label:hover,
  419. a.ui.green.label:hover {
  420. background-color: #89B84C !important;
  421. border-color: #89B84C !important;
  422. }
  423. .ui.labels a.green.label:hover:before,
  424. .ui.green.labels a.label:hover:before,
  425. a.ui.green.label:hover:before {
  426. background-color: #89B84C !important;
  427. }
  428. /* Corner */
  429. .ui.green.corner.label,
  430. .ui.green.corner.label:hover {
  431. background-color: transparent !important;
  432. }
  433. /* Ribbon */
  434. .ui.green.ribbon.label {
  435. border-color: #89B84C !important;
  436. }
  437. /*--- Red ---*/
  438. .ui.red.labels .label,
  439. .ui.red.label {
  440. background-color: #D95C5C !important;
  441. border-color: #D95C5C !important;
  442. color: #FFFFFF !important;
  443. }
  444. .ui.labels .red.label:before,
  445. .ui.red.labels .label:before,
  446. .ui.red.label:before {
  447. background-color: #D95C5C !important;
  448. }
  449. /* Corner */
  450. .ui.red.corner.label,
  451. .ui.red.corner.label:hover {
  452. background-color: transparent !important;
  453. }
  454. /* Hover */
  455. a.ui.red.labels .label:hover,
  456. a.ui.red.label:hover {
  457. background-color: #DE3859 !important;
  458. border-color: #DE3859 !important;
  459. color: #FFFFFF !important;
  460. }
  461. .ui.labels a.red.label:hover:before,
  462. .ui.red.labels a.label:hover:before,
  463. a.ui.red.label:hover:before {
  464. background-color: #DE3859 !important;
  465. }
  466. /* Ribbon */
  467. .ui.red.ribbon.label {
  468. border-color: #DE3859 !important;
  469. }
  470. /*--- Blue ---*/
  471. .ui.blue.labels .label,
  472. .ui.blue.label {
  473. background-color: #6ECFF5 !important;
  474. border-color: #6ECFF5 !important;
  475. color: #FFFFFF !important;
  476. }
  477. .ui.labels .blue.label:before,
  478. .ui.blue.labels .label:before,
  479. .ui.blue.label:before {
  480. background-color: #6ECFF5 !important;
  481. }
  482. /* Hover */
  483. a.ui.blue.labels .label:hover,
  484. .ui.blue.labels a.label:hover,
  485. a.ui.blue.label:hover {
  486. background-color: #1AB8F3 !important;
  487. border-color: #1AB8F3 !important;
  488. color: #FFFFFF !important;
  489. }
  490. .ui.labels a.blue.label:hover:before,
  491. .ui.blue.labels a.label:hover:before,
  492. a.ui.blue.label:hover:before {
  493. background-color: #1AB8F3 !important;
  494. }
  495. /* Corner */
  496. .ui.blue.corner.label,
  497. .ui.blue.corner.label:hover {
  498. background-color: transparent !important;
  499. }
  500. /* Ribbon */
  501. .ui.blue.ribbon.label {
  502. border-color: #1AB8F3 !important;
  503. }
  504. /*--- Purple ---*/
  505. .ui.purple.labels .label,
  506. .ui.purple.label {
  507. background-color: #564F8A !important;
  508. border-color: #564F8A !important;
  509. color: #FFFFFF !important;
  510. }
  511. .ui.labels .purple.label:before,
  512. .ui.purple.labels .label:before,
  513. .ui.purple.label:before {
  514. background-color: #564F8A !important;
  515. }
  516. /* Hover */
  517. a.ui.purple.labels .label:hover,
  518. .ui.purple.labels a.label:hover,
  519. a.ui.purple.label:hover {
  520. background-color: #3E3773 !important;
  521. border-color: #3E3773 !important;
  522. color: #FFFFFF !important;
  523. }
  524. .ui.labels a.purple.label:hover:before,
  525. .ui.purple.labels a.label:hover:before,
  526. a.ui.purple.label:hover:before {
  527. background-color: #3E3773 !important;
  528. }
  529. /* Corner */
  530. .ui.purple.corner.label,
  531. .ui.purple.corner.label:hover {
  532. background-color: transparent !important;
  533. }
  534. /* Ribbon */
  535. .ui.purple.ribbon.label {
  536. border-color: #3E3773 !important;
  537. }
  538. /*--- Orange ---*/
  539. .ui.orange.labels .label,
  540. .ui.orange.label {
  541. background-color: #F05940 !important;
  542. border-color: #F05940 !important;
  543. color: #FFFFFF !important;
  544. }
  545. .ui.labels .orange.label:before,
  546. .ui.orange.labels .label:before,
  547. .ui.orange.label:before {
  548. background-color: #F05940 !important;
  549. }
  550. /* Hover */
  551. a.ui.orange.labels .label:hover,
  552. .ui.orange.labels a.label:hover,
  553. a.ui.orange.label:hover {
  554. background-color: #FF4121 !important;
  555. border-color: #FF4121 !important;
  556. color: #FFFFFF !important;
  557. }
  558. .ui.labels a.orange.label:hover:before,
  559. .ui.orange.labels a.label:hover:before,
  560. a.ui.orange.label:hover:before {
  561. background-color: #FF4121 !important;
  562. }
  563. /* Corner */
  564. .ui.orange.corner.label,
  565. .ui.orange.corner.label:hover {
  566. background-color: transparent !important;
  567. }
  568. /* Ribbon */
  569. .ui.orange.ribbon.label {
  570. border-color: #FF4121 !important;
  571. }
  572. /*--- Teal ---*/
  573. .ui.teal.labels .label,
  574. .ui.teal.label {
  575. background-color: #00B5AD !important;
  576. border-color: #00B5AD !important;
  577. color: #FFFFFF !important;
  578. }
  579. .ui.labels .teal.label:before,
  580. .ui.teal.labels .label:before,
  581. .ui.teal.label:before {
  582. background-color: #00B5AD !important;
  583. }
  584. /* Hover */
  585. a.ui.teal.labels .label:hover,
  586. .ui.teal.labels a.label:hover,
  587. a.ui.teal.label:hover {
  588. background-color: #009A93 !important;
  589. border-color: #009A93 !important;
  590. color: #FFFFFF !important;
  591. }
  592. .ui.labels a.teal.label:hover:before,
  593. .ui.teal.labels a.label:hover:before,
  594. a.ui.teal.label:hover:before {
  595. background-color: #009A93 !important;
  596. }
  597. /* Corner */
  598. .ui.teal.corner.label,
  599. .ui.teal.corner.label:hover {
  600. background-color: transparent !important;
  601. }
  602. /* Ribbon */
  603. .ui.teal.ribbon.label {
  604. border-color: #009A93 !important;
  605. }
  606. /*-------------------
  607. Horizontal
  608. --------------------*/
  609. .ui.horizontal.labels .label,
  610. .ui.horizontal.label {
  611. margin: -0.125em 0em -0.125em 0.5em;
  612. padding: 0.35em 1em;
  613. min-width: 6em;
  614. text-align: center;
  615. }
  616. /*-------------------
  617. Circular
  618. --------------------*/
  619. .ui.circular.labels .label,
  620. .ui.circular.label {
  621. min-height: 1em;
  622. max-height: 2em;
  623. padding: 0.5em !important;
  624. line-height: 1em;
  625. text-align: center;
  626. border-radius: 500rem;
  627. }
  628. /*-------------------
  629. Pointing
  630. --------------------*/
  631. .ui.pointing.label {
  632. position: relative;
  633. }
  634. .ui.attached.pointing.label {
  635. position: absolute;
  636. }
  637. .ui.pointing.label:before {
  638. position: absolute;
  639. content: "";
  640. width: 0.6em;
  641. height: 0.6em;
  642. background-image: none;
  643. -webkit-transform: rotate(45deg);
  644. -ms-transform: rotate(45deg);
  645. transform: rotate(45deg);
  646. z-index: 2;
  647. -webkit-transition: background 0.1s linear;
  648. transition: background 0.1s linear;
  649. }
  650. /*--- Above ---*/
  651. .ui.pointing.label:before {
  652. background-color: #E8E8E8;
  653. }
  654. .ui.pointing.label,
  655. .ui.pointing.above.label {
  656. margin-top: 1em;
  657. }
  658. .ui.pointing.label:before,
  659. .ui.pointing.above.label:before {
  660. margin-right: -0.3em;
  661. top: -0.3em;
  662. right: 50%;
  663. }
  664. /*--- Below ---*/
  665. .ui.pointing.below.label {
  666. margin-top: 0em;
  667. margin-bottom: 1em;
  668. }
  669. .ui.pointing.below.label:before {
  670. margin-right: -0.3em;
  671. top: auto;
  672. left: auto;
  673. bottom: -0.3em;
  674. right: 50%;
  675. }
  676. /*--- Left ---*/
  677. .ui.pointing.left.label {
  678. margin-top: 0em;
  679. margin-right: 1em;
  680. }
  681. .ui.pointing.left.label:before {
  682. margin-top: -0.3em;
  683. bottom: auto;
  684. left: auto;
  685. top: 50%;
  686. right: 0em;
  687. }
  688. /*--- Right ---*/
  689. .ui.pointing.right.label {
  690. margin-top: 0em;
  691. margin-left: 1em;
  692. }
  693. .ui.pointing.right.label:before {
  694. margin-top: -0.3em;
  695. left: -0.3em;
  696. top: 50%;
  697. bottom: auto;
  698. right: auto;
  699. }
  700. /*------------------
  701. Floating Label
  702. -------------------*/
  703. .ui.floating.label {
  704. position: absolute;
  705. z-index: 100;
  706. top: -1em;
  707. right: 100%;
  708. margin: 0em -1.5em 0em 0em !important;
  709. }
  710. /*-------------------
  711. Sizes
  712. --------------------*/
  713. .ui.small.labels .label,
  714. .ui.small.label {
  715. font-size: 0.75rem;
  716. }
  717. .ui.label {
  718. font-size: 0.8125rem;
  719. }
  720. .ui.large.labels .label,
  721. .ui.large.label {
  722. font-size: 0.875rem;
  723. }
  724. .ui.huge.labels .label,
  725. .ui.huge.label {
  726. font-size: 1rem;
  727. }