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.

823 lines
16 KiB

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