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.

690 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: 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 .icon {
  349. margin: 0.4em 0em 0em -0.7em;
  350. }
  351. .ui.left.corner.label .text {
  352. margin: 0.5em 0em 0em -0.6em;
  353. -webkit-transform: rotate(-45deg);
  354. -moz-transform: rotate(-45deg);
  355. -o-transform: rotate(-45deg);
  356. -ms-transform: rotate(-45deg);
  357. transform: rotate(-45deg);
  358. }
  359. /* Hover */
  360. .ui.corner.label:hover {
  361. background-color: transparent;
  362. }
  363. /*-------------------
  364. Fluid
  365. --------------------*/
  366. .ui.label.fluid,
  367. .ui.fluid.labels > .label {
  368. width: 100%;
  369. -webkit-box-sizing: border-box;
  370. -moz-box-sizing: border-box;
  371. -ms-box-sizing: border-box;
  372. box-sizing: border-box;
  373. }
  374. /*-------------------
  375. Inverted
  376. --------------------*/
  377. .ui.inverted.labels .label,
  378. .ui.inverted.label {
  379. color: #FFFFFF !important;
  380. }
  381. /*-------------------
  382. Colors
  383. --------------------*/
  384. /*--- Black ---*/
  385. .ui.black.labels .label,
  386. .ui.black.label {
  387. background-color: #5C6166 !important;
  388. border-color: #5C6166 !important;
  389. color: #FFFFFF !important;
  390. }
  391. .ui.labels .black.label:before,
  392. .ui.black.labels .label:before,
  393. .ui.black.label:before {
  394. background-color: #5C6166 !important;
  395. }
  396. /* Hover */
  397. a.ui.black.labels .label:hover,
  398. a.ui.black.label:hover {
  399. background-color: #888888 !important;
  400. border-color: #888888 !important;
  401. }
  402. .ui.labels a.black.label:hover:before,
  403. .ui.black.labels a.label:hover:before,
  404. a.ui.black.label:hover:before {
  405. background-color: #888888 !important;
  406. }
  407. /* Corner */
  408. .ui.black.corner.label,
  409. .ui.black.corner.label:hover {
  410. background-color: transparent !important;
  411. }
  412. /*--- Green ---*/
  413. .ui.green.labels .label,
  414. .ui.green.label {
  415. background-color: #A1CF64 !important;
  416. border-color: #A1CF64 !important;
  417. color: #FFFFFF !important;
  418. }
  419. .ui.labels .green.label:before,
  420. .ui.green.labels .label:before,
  421. .ui.green.label:before {
  422. background-color: #A1CF64 !important;
  423. }
  424. /* Hover */
  425. a.ui.green.labels .label:hover,
  426. a.ui.green.label:hover {
  427. background-color: #89B84C !important;
  428. border-color: #89B84C !important;
  429. }
  430. .ui.labels a.green.label:hover:before,
  431. .ui.green.labels a.label:hover:before,
  432. a.ui.green.label:hover:before {
  433. background-color: #89B84C !important;
  434. }
  435. /* Corner */
  436. .ui.green.corner.label,
  437. .ui.green.corner.label:hover {
  438. background-color: transparent !important;
  439. }
  440. /*--- Red ---*/
  441. .ui.red.labels .label,
  442. .ui.red.label {
  443. background-color: #D95C5C !important;
  444. border-color: #D95C5C !important;
  445. color: #FFFFFF !important;
  446. }
  447. .ui.labels .red.label:before,
  448. .ui.red.labels .label:before,
  449. .ui.red.label:before {
  450. background-color: #D95C5C !important;
  451. }
  452. /* Corner */
  453. .ui.red.corner.label,
  454. .ui.red.corner.label:hover {
  455. background-color: transparent !important;
  456. }
  457. /* Hover */
  458. a.ui.red.labels .label:hover,
  459. a.ui.red.label:hover {
  460. background-color: #DE3859 !important;
  461. border-color: #DE3859 !important;
  462. color: #FFFFFF !important;
  463. }
  464. .ui.labels a.red.label:hover:before,
  465. .ui.red.labels a.label:hover:before,
  466. a.ui.red.label:hover:before {
  467. background-color: #DE3859 !important;
  468. }
  469. /*--- Blue ---*/
  470. .ui.blue.labels .label,
  471. .ui.blue.label {
  472. background-color: #6ECFF5 !important;
  473. border-color: #6ECFF5 !important;
  474. color: #FFFFFF !important;
  475. }
  476. .ui.labels .blue.label:before,
  477. .ui.blue.labels .label:before,
  478. .ui.blue.label:before {
  479. background-color: #6ECFF5 !important;
  480. }
  481. /* Hover */
  482. a.ui.blue.labels .label:hover,
  483. .ui.blue.labels a.label:hover,
  484. a.ui.blue.label:hover {
  485. background-color: #1AB8F3 !important;
  486. border-color: #1AB8F3 !important;
  487. color: #FFFFFF !important;
  488. }
  489. .ui.labels a.blue.label:hover:before,
  490. .ui.blue.labels a.label:hover:before,
  491. a.ui.blue.label:hover:before {
  492. background-color: #1AB8F3 !important;
  493. }
  494. /* Corner */
  495. .ui.blue.corner.label,
  496. .ui.blue.corner.label:hover {
  497. background-color: transparent !important;
  498. }
  499. /*--- Purple ---*/
  500. .ui.purple.labels .label,
  501. .ui.purple.label {
  502. background-color: #564F8A !important;
  503. border-color: #564F8A !important;
  504. color: #FFFFFF !important;
  505. }
  506. .ui.labels .purple.label:before,
  507. .ui.purple.labels .label:before,
  508. .ui.purple.label:before {
  509. background-color: #564F8A !important;
  510. }
  511. /* Hover */
  512. a.ui.purple.labels .label:hover,
  513. .ui.purple.labels a.label:hover,
  514. a.ui.purple.label:hover {
  515. background-color: #3E3773 !important;
  516. border-color: #3E3773 !important;
  517. color: #FFFFFF !important;
  518. }
  519. .ui.labels a.purple.label:hover:before,
  520. .ui.purple.labels a.label:hover:before,
  521. a.ui.purple.label:hover:before {
  522. background-color: #3E3773 !important;
  523. }
  524. /* Corner */
  525. .ui.purple.corner.label,
  526. .ui.purple.corner.label:hover {
  527. background-color: transparent !important;
  528. }
  529. /*--- Pink ---*/
  530. .ui.teal.labels .label,
  531. .ui.teal.label {
  532. background-color: #00B5AD !important;
  533. border-color: #00B5AD !important;
  534. color: #FFFFFF !important;
  535. }
  536. .ui.labels .teal.label:before,
  537. .ui.teal.labels .label:before,
  538. .ui.teal.label:before {
  539. background-color: #00B5AD !important;
  540. }
  541. /* Hover */
  542. a.ui.teal.labels .label:hover,
  543. .ui.teal.labels a.label:hover,
  544. a.ui.teal.label:hover {
  545. background-color: #009A93 !important;
  546. border-color: #009A93 !important;
  547. color: #FFFFFF !important;
  548. }
  549. .ui.labels a.teal.label:hover:before,
  550. .ui.teal.labels a.label:hover:before,
  551. a.ui.teal.label:hover:before {
  552. background-color: #009A93 !important;
  553. }
  554. /* Corner */
  555. .ui.teal.corner.label,
  556. .ui.teal.corner.label:hover {
  557. background-color: transparent !important;
  558. }
  559. /*-------------------
  560. Horizontal
  561. --------------------*/
  562. .ui.horizontal.labels .label,
  563. .ui.horizontal.label {
  564. margin: -0.125em 0.5em -0.125em 0em;
  565. padding: 0.35em 1em;
  566. min-width: 6em;
  567. text-align: center;
  568. }
  569. /*-------------------
  570. Circular
  571. --------------------*/
  572. .ui.circular.labels .label,
  573. .ui.circular.label {
  574. min-height: 1em;
  575. max-height: 2em;
  576. padding: 0.5em !important;
  577. line-height: 1em;
  578. text-align: center;
  579. -webkit-border-radius: 500rem;
  580. -moz-border-radius: 500rem;
  581. border-radius: 500rem;
  582. }
  583. /*-------------------
  584. Pointing
  585. --------------------*/
  586. .ui.pointing.label {
  587. position: relative;
  588. }
  589. .ui.attached.pointing.label {
  590. position: absolute;
  591. }
  592. .ui.pointing.label:before {
  593. position: absolute;
  594. content: "";
  595. width: 0.6em;
  596. height: 0.6em;
  597. background-image: none;
  598. -webkit-transform: rotate(45deg);
  599. -moz-transform: rotate(45deg);
  600. transform: rotate(45deg);
  601. z-index: 2;
  602. -webkit-transition: background 0.1s linear
  603. ;
  604. -moz-transition: background 0.1s linear
  605. ;
  606. -o-transition: background 0.1s linear
  607. ;
  608. -ms-transition: background 0.1s linear
  609. ;
  610. transition: background 0.1s linear
  611. ;
  612. }
  613. /*--- Above ---*/
  614. .ui.pointing.label:before {
  615. background-color: #E8E8E8;
  616. }
  617. .ui.pointing.label,
  618. .ui.pointing.above.label {
  619. margin-top: 1em;
  620. }
  621. .ui.pointing.label:before,
  622. .ui.pointing.above.label:before {
  623. margin-left: -0.3em;
  624. top: -0.3em;
  625. left: 50%;
  626. }
  627. /*--- Below ---*/
  628. .ui.pointing.below.label {
  629. margin-top: 0em;
  630. margin-bottom: 1em;
  631. }
  632. .ui.pointing.below.label:before {
  633. margin-left: -0.3em;
  634. top: auto;
  635. right: auto;
  636. bottom: -0.3em;
  637. left: 50%;
  638. }
  639. /*--- Left ---*/
  640. .ui.pointing.left.label {
  641. margin-top: 0em;
  642. margin-left: 1em;
  643. }
  644. .ui.pointing.left.label:before {
  645. margin-top: -0.3em;
  646. bottom: auto;
  647. right: auto;
  648. top: 50%;
  649. left: 0em;
  650. }
  651. /*--- Right ---*/
  652. .ui.pointing.right.label {
  653. margin-top: 0em;
  654. margin-right: 1em;
  655. }
  656. .ui.pointing.right.label:before {
  657. margin-top: -0.3em;
  658. right: -0.3em;
  659. top: 50%;
  660. bottom: auto;
  661. left: auto;
  662. }
  663. /*------------------
  664. Floating Label
  665. -------------------*/
  666. .ui.floating.label {
  667. position: absolute;
  668. z-index: 100;
  669. top: -1em;
  670. left: 100%;
  671. margin: 0em 0em 0em -1.5em !important;
  672. }
  673. /*-------------------
  674. Sizes
  675. --------------------*/
  676. .ui.small.labels .label,
  677. .ui.small.label {
  678. font-size: 0.75rem;
  679. }
  680. .ui.label {
  681. font-size: 0.8125rem;
  682. }
  683. .ui.large.labels .label,
  684. .ui.large.label {
  685. font-size: 0.875rem;
  686. }
  687. .ui.huge.labels .label,
  688. .ui.huge.label {
  689. font-size: 1rem;
  690. }