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 - 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: background 0.1s linear
  33. ;
  34. -moz-transition: background 0.1s linear
  35. ;
  36. -o-transition: background 0.1s linear
  37. ;
  38. -ms-transition: background 0.1s linear
  39. ;
  40. transition: background 0.1s linear
  41. ;
  42. }
  43. .ui.label:first-child {
  44. margin-left: 0em;
  45. }
  46. .ui.label:last-child {
  47. margin-right: 0em;
  48. }
  49. /* Link */
  50. a.ui.label {
  51. cursor: pointer;
  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. ;
  71. -moz-transition: background 0.1s linear
  72. ;
  73. -o-transition: background 0.1s linear
  74. ;
  75. -ms-transition: background 0.1s linear
  76. ;
  77. transition: background 0.1s linear
  78. ;
  79. }
  80. .ui.label .delete.icon:hover {
  81. opacity: 0.99;
  82. }
  83. /*******************************
  84. Types
  85. *******************************/
  86. .ui.image.label {
  87. width: auto !important;
  88. margin-top: 0em;
  89. margin-bottom: 0em;
  90. padding-top: 0.4em;
  91. padding-bottom: 0.4em;
  92. line-height: 1.5em;
  93. vertical-align: baseline;
  94. text-transform: none;
  95. -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  96. -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  97. box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
  98. }
  99. .ui.image.label img {
  100. display: inline-block;
  101. height: 2.25em;
  102. margin: -0.4em 0.8em -0.4em -0.8em;
  103. vertical-align: top;
  104. -moz-border-radius: 0.325em 0em 0em 0.325em;
  105. -webkit-border-radius: 0.325em 0em 0em 0.325em;
  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. -webkit-border-radius: 0px 3px 3px 0px;
  157. -moz-border-radius: 0px 3px 3px 0px;
  158. border-radius: 0px 3px 3px 0px;
  159. }
  160. .ui.tag.labels .label:before,
  161. .ui.tag.label:before {
  162. position: absolute;
  163. top: 0.3em;
  164. left: 0.3em;
  165. content: '';
  166. margin-left: -1em;
  167. background-image: none;
  168. width: 1.5em;
  169. height: 1.5em;
  170. -webkit-transform: rotate(45deg);
  171. -moz-transform: rotate(45deg);
  172. transform: rotate(45deg);
  173. -webkit-transition: background 0.1s linear
  174. ;
  175. -moz-transition: background 0.1s linear
  176. ;
  177. -o-transition: background 0.1s linear
  178. ;
  179. -ms-transition: background 0.1s linear
  180. ;
  181. transition: background 0.1s linear
  182. ;
  183. }
  184. .ui.tag.labels .label:after,
  185. .ui.tag.label:after {
  186. position: absolute;
  187. content: '';
  188. top: 50%;
  189. left: -0.25em;
  190. margin-top: -0.3em;
  191. background-color: #FFFFFF;
  192. width: 0.55em;
  193. height: 0.55em;
  194. -webkit-box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  195. -moz-box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  196. box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  197. -moz-border-radius: 100px 100px 100px 100px;
  198. -webkit-border-radius: 100px 100px 100px 100px;
  199. border-radius: 100px 100px 100px 100px;
  200. }
  201. /*-------------------
  202. Ribbon
  203. --------------------*/
  204. .ui.ribbon.label {
  205. position: relative;
  206. left: -2rem;
  207. padding-left: 2rem;
  208. -webkit-border-radius: 0px 4px 4px 0px;
  209. -moz-border-radius: 0px 4px 4px 0px;
  210. border-radius: 0px 4px 4px 0px;
  211. }
  212. .ui.ribbon.label:after {
  213. position: absolute;
  214. content: "";
  215. top: 100%;
  216. left: 0%;
  217. border-top: 0em solid transparent;
  218. border-right-width: 1em;
  219. border-right-color: inherit;
  220. border-right-style: solid;
  221. border-bottom: 1em solid transparent;
  222. border-left: 0em solid transparent;
  223. width: 0em;
  224. height: 0em;
  225. }
  226. /*-------------------
  227. Attached
  228. --------------------*/
  229. .ui.top.attached.label,
  230. .ui.attached.label {
  231. width: 100%;
  232. position: absolute;
  233. margin: 0em;
  234. top: 0em;
  235. left: 0em;
  236. -webkit-border-radius: 4px 4px 0em 0em;
  237. -moz-border-radius: 4px 4px 0em 0em;
  238. border-radius: 4px 4px 0em 0em;
  239. }
  240. .ui.bottom.attached.label {
  241. top: auto;
  242. bottom: 0em;
  243. -webkit-border-radius: 0em 0em 4px 4px;
  244. -moz-border-radius: 0em 0em 4px 4px;
  245. border-radius: 0em 0em 4px 4px;
  246. }
  247. .ui.top.left.attached.label {
  248. width: auto;
  249. margin-top: 0em !important;
  250. -webkit-border-radius: 4px 0em 4px 0em;
  251. -moz-border-radius: 4px 0em 4px 0em;
  252. border-radius: 4px 0em 4px 0em;
  253. }
  254. .ui.top.right.attached.label {
  255. width: auto;
  256. left: auto;
  257. right: 0em;
  258. -webkit-border-radius: 0em 4px 0em 4px;
  259. -moz-border-radius: 0em 4px 0em 4px;
  260. border-radius: 0em 4px 0em 4px;
  261. }
  262. .ui.bottom.left.attached.label {
  263. width: auto;
  264. top: auto;
  265. bottom: 0em;
  266. -webkit-border-radius: 4px 0em 0em 4px;
  267. -moz-border-radius: 4px 0em 0em 4px;
  268. border-radius: 4px 0em 0em 4px;
  269. }
  270. .ui.bottom.right.attached.label {
  271. top: auto;
  272. bottom: 0em;
  273. left: auto;
  274. right: 0em;
  275. width: auto;
  276. -webkit-border-radius: 4px 0em 4px 0em;
  277. -moz-border-radius: 4px 0em 4px 0em;
  278. border-radius: 4px 0em 4px 0em;
  279. }
  280. /*-------------------
  281. Corner Label
  282. --------------------*/
  283. .ui.corner.label {
  284. background-color: transparent;
  285. position: absolute;
  286. top: 0em;
  287. right: 0em;
  288. z-index: 10;
  289. margin: 0em;
  290. font-size: 0.9em;
  291. width: 1.75em;
  292. height: 1.75em;
  293. padding: 0em;
  294. text-align: center;
  295. -webkit-transition: color 0.2s ease;
  296. -moz-transition: color 0.2s ease;
  297. -o-transition: color 0.2s ease;
  298. -ms-transition: color 0.2s ease;
  299. transition: color 0.2s ease;
  300. }
  301. .ui.corner.label:after {
  302. position: absolute;
  303. content: "";
  304. right: 0em;
  305. top: 0em;
  306. z-index: -1;
  307. width: 0em;
  308. height: 0em;
  309. border-top: 0em solid transparent;
  310. border-right: 2.75em solid transparent;
  311. border-bottom: 2.75em solid transparent;
  312. border-left: 0em solid transparent;
  313. border-right-color: inherit;
  314. -webkit-transition: border-color 0.2s ease;
  315. -moz-transition: border-color 0.2s ease;
  316. -o-transition: border-color 0.2s ease;
  317. -ms-transition: border-color 0.2s ease;
  318. transition: border-color 0.2s ease;
  319. }
  320. .ui.corner.label .icon {
  321. margin: 0.35em 0em;
  322. vertical-align: top;
  323. }
  324. .ui.corner.label .text {
  325. display: inline-block;
  326. margin: 0.7em 0em 0em 0em;
  327. width: 2.5em;
  328. font-size: 0.7em;
  329. text-align: center;
  330. -webkit-transform: rotate(45deg);
  331. -moz-transform: rotate(45deg);
  332. -o-transform: rotate(45deg);
  333. -ms-transform: rotate(45deg);
  334. transform: rotate(45deg);
  335. }
  336. /* Left Corner */
  337. .ui.left.corner.label,
  338. .ui.left.corner.label:after {
  339. right: auto;
  340. left: 0em;
  341. }
  342. .ui.left.corner.label:after {
  343. border-top: 2.75em solid transparent;
  344. border-right: 2.75em solid transparent;
  345. border-bottom: 0em solid transparent;
  346. border-left: 0em solid transparent;
  347. border-top-color: inherit;
  348. }
  349. .ui.left.corner.label .text {
  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. }