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.

750 lines
16 KiB

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