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.

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