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.

551 lines
12 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.5em 0.25em 0em;
  19. background-color: #E8E8E8;
  20. padding: 0.5em 0.8em;
  21. color: rgba(0, 0, 0, 0.65);
  22. text-transform: uppercase;
  23. -webkit-border-radius: 0.325em;
  24. -moz-border-radius: 0.325em;
  25. border-radius: 0.325em;
  26. -webkit-box-sizing: border-box;
  27. -moz-box-sizing: border-box;
  28. -ms-box-sizing: border-box;
  29. box-sizing: border-box;
  30. -webkit-transition: background 0.1s linear
  31. ;
  32. -moz-transition: background 0.1s linear
  33. ;
  34. -o-transition: background 0.1s linear
  35. ;
  36. -ms-transition: background 0.1s linear
  37. ;
  38. transition: background 0.1s linear
  39. ;
  40. }
  41. a.ui.label {
  42. cursor: pointer;
  43. }
  44. .ui.label.disabled {
  45. opacity: 0.5;
  46. }
  47. .ui.label .detail {
  48. display: inline-block;
  49. margin-left: 0.5em;
  50. font-weight: bold;
  51. opacity: 0.8;
  52. }
  53. .ui.label .icon.close {
  54. cursor: pointer;
  55. margin-left: 0.5em;
  56. opacity: 0.7;
  57. -webkit-transition: background 0.1s linear
  58. ;
  59. -moz-transition: background 0.1s linear
  60. ;
  61. -o-transition: background 0.1s linear
  62. ;
  63. -ms-transition: background 0.1s linear
  64. ;
  65. transition: background 0.1s linear
  66. ;
  67. }
  68. /*******************************
  69. States
  70. *******************************/
  71. /*-------------------
  72. Hover
  73. --------------------*/
  74. a.ui.labels .label:hover,
  75. a.ui.label:hover {
  76. background-color: #E0E0E0;
  77. color: rgba(0, 0, 0, 0.7);
  78. }
  79. .ui.labels a.label:hover:before,
  80. a.ui.label:hover:before {
  81. background-color: #E0E0E0;
  82. color: rgba(0, 0, 0, 0.7);
  83. }
  84. .ui.label .icon.close:hover {
  85. opacity: 1;
  86. }
  87. /*******************************
  88. Variations
  89. *******************************/
  90. /*-------------------
  91. Tag
  92. --------------------*/
  93. .ui.tag.labels .label,
  94. .ui.tag.label {
  95. margin-left: 1em;
  96. position: relative;
  97. padding: 0.33em 1.3em 0.33em 1.4em;
  98. -webkit-border-radius: 0px 3px 3px 0px;
  99. -moz-border-radius: 0px 3px 3px 0px;
  100. border-radius: 0px 3px 3px 0px;
  101. }
  102. .ui.tag.labels .label:before,
  103. .ui.tag.label:before {
  104. position: absolute;
  105. top: 0.3em;
  106. left: 0.3em;
  107. content: '';
  108. margin-left: -1em;
  109. background-image: none;
  110. width: 1.5em;
  111. height: 1.5em;
  112. -webkit-transform: rotate(45deg);
  113. -moz-transform: rotate(45deg);
  114. transform: rotate(45deg);
  115. -webkit-transition: background 0.1s linear
  116. ;
  117. -moz-transition: background 0.1s linear
  118. ;
  119. -o-transition: background 0.1s linear
  120. ;
  121. -ms-transition: background 0.1s linear
  122. ;
  123. transition: background 0.1s linear
  124. ;
  125. }
  126. .ui.tag.labels .label:after,
  127. .ui.tag.label:after {
  128. position: absolute;
  129. content: '';
  130. top: 50%;
  131. left: -0.25em;
  132. margin-top: -0.3em;
  133. background-color: #FFFFFF;
  134. width: 0.55em;
  135. height: 0.55em;
  136. -webkit-box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  137. -moz-box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  138. box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  139. -moz-border-radius: 100px 100px 100px 100px;
  140. -webkit-border-radius: 100px 100px 100px 100px;
  141. border-radius: 100px 100px 100px 100px;
  142. }
  143. /*-------------------
  144. Attached
  145. --------------------*/
  146. .ui.top.attached.label,
  147. .ui.attached.label {
  148. width: 100%;
  149. position: absolute;
  150. margin: 0em;
  151. top: 0em;
  152. left: 0em;
  153. -webkit-border-radius: 4px 4px 0em 0em;
  154. -moz-border-radius: 4px 4px 0em 0em;
  155. border-radius: 4px 4px 0em 0em;
  156. }
  157. .ui.bottom.attached.label {
  158. top: auto;
  159. bottom: 0em;
  160. -webkit-border-radius: 0em 0em 4px 4px;
  161. -moz-border-radius: 0em 0em 4px 4px;
  162. border-radius: 0em 0em 4px 4px;
  163. }
  164. .ui.top.left.attached.label {
  165. width: auto;
  166. margin-top: 0em !important;
  167. -webkit-border-radius: 4px 0em 4px 0em;
  168. -moz-border-radius: 4px 0em 4px 0em;
  169. border-radius: 4px 0em 4px 0em;
  170. }
  171. .ui.top.right.attached.label {
  172. width: auto;
  173. left: auto;
  174. right: 0em;
  175. -webkit-border-radius: 0em 4px 0em 4px;
  176. -moz-border-radius: 0em 4px 0em 4px;
  177. border-radius: 0em 4px 0em 4px;
  178. }
  179. .ui.bottom.left.attached.label {
  180. width: auto;
  181. top: auto;
  182. bottom: 0em;
  183. -webkit-border-radius: 4px 0em 0em 4px;
  184. -moz-border-radius: 4px 0em 0em 4px;
  185. border-radius: 4px 0em 0em 4px;
  186. }
  187. .ui.bottom.right.attached.label {
  188. width: auto;
  189. -webkit-border-radius: 4px 0em 4px 0em;
  190. -moz-border-radius: 4px 0em 4px 0em;
  191. border-radius: 4px 0em 4px 0em;
  192. }
  193. /*-------------------
  194. Corner Label
  195. --------------------*/
  196. .ui.corner.label {
  197. background-color: transparent;
  198. position: absolute;
  199. top: 0em;
  200. right: 0em;
  201. z-index: 10;
  202. margin: 0em;
  203. font-size: 0.9em;
  204. width: 1.75em;
  205. height: 1.75em;
  206. padding: 0em;
  207. text-align: center;
  208. -webkit-transition: color 0.2s ease;
  209. -moz-transition: color 0.2s ease;
  210. -o-transition: color 0.2s ease;
  211. -ms-transition: color 0.2s ease;
  212. transition: color 0.2s ease;
  213. }
  214. .ui.corner.label:after {
  215. position: absolute;
  216. content: "";
  217. right: 0em;
  218. top: 0em;
  219. z-index: -1;
  220. width: 0em;
  221. height: 0em;
  222. border-color: transparent #E8E8E8 transparent transparent;
  223. border-style: solid;
  224. border-width: 0em 2.75em 2.75em 0em;
  225. -webkit-transition: border-color 0.2s ease;
  226. -moz-transition: border-color 0.2s ease;
  227. -o-transition: border-color 0.2s ease;
  228. -ms-transition: border-color 0.2s ease;
  229. transition: border-color 0.2s ease;
  230. }
  231. .ui.corner.label .icon {
  232. margin: 0.35em 0em;
  233. vertical-align: top;
  234. }
  235. .ui.corner.label .text {
  236. display: inline-block;
  237. margin: 0.7em 0em 0em 0em;
  238. width: 2.5em;
  239. font-size: 0.7em;
  240. text-align: center;
  241. -webkit-transform: rotate(45deg);
  242. -moz-transform: rotate(45deg);
  243. -o-transform: rotate(45deg);
  244. -ms-transform: rotate(45deg);
  245. transform: rotate(45deg);
  246. }
  247. /* Left Corner */
  248. .ui.left.corner.label,
  249. .ui.left.corner.label:after {
  250. right: auto;
  251. left: 0em;
  252. }
  253. .ui.left.corner.label:after {
  254. border-width: 2.75em 2.75em 0em 0em;
  255. border-color: #E8E8E8 transparent transparent;
  256. }
  257. .ui.left.corner.label .text {
  258. -webkit-transform: rotate(-45deg);
  259. -moz-transform: rotate(-45deg);
  260. -o-transform: rotate(-45deg);
  261. -ms-transform: rotate(-45deg);
  262. transform: rotate(-45deg);
  263. }
  264. /* Hover */
  265. .ui.corner.label:hover {
  266. background-color: transparent;
  267. }
  268. a.ui.corner.label:hover::after {
  269. border-right-color: #E0E0E0;
  270. }
  271. a.ui.left.corner.label:hover::after {
  272. border-right-color: transparent;
  273. border-top-color: #E0E0E0;
  274. }
  275. /*-------------------
  276. Fluid
  277. --------------------*/
  278. .ui.label.fluid,
  279. .ui.fluid.labels > .label {
  280. width: 100%;
  281. -webkit-box-sizing: border-box;
  282. -moz-box-sizing: border-box;
  283. -ms-box-sizing: border-box;
  284. box-sizing: border-box;
  285. }
  286. /*-------------------
  287. Inverted
  288. --------------------*/
  289. .ui.inverted.labels .label,
  290. .ui.inverted.label {
  291. color: #FFFFFF !important;
  292. }
  293. /*-------------------
  294. Colors
  295. --------------------*/
  296. /*--- Black ---*/
  297. .ui.black.labels .label,
  298. .ui.black.label {
  299. background-color: #5C6166 !important;
  300. color: #FFFFFF !important;
  301. }
  302. .ui.labels .black.label:before,
  303. .ui.black.labels .label:before,
  304. .ui.black.label:before {
  305. background-color: #5C6166 !important;
  306. }
  307. /* Hover */
  308. a.ui.black.labels .label:hover,
  309. a.ui.black.label:hover {
  310. background-color: #888888 !important;
  311. }
  312. .ui.labels a.black.label:hover:before,
  313. .ui.black.labels a.label:hover:before,
  314. a.ui.black.label:hover:before {
  315. background-color: #888888 !important;
  316. }
  317. /*--- Green ---*/
  318. .ui.green.labels .label,
  319. .ui.green.label {
  320. background-color: #A1CF64 !important;
  321. color: #FFFFFF !important;
  322. }
  323. .ui.labels .green.label:before,
  324. .ui.green.labels .label:before,
  325. .ui.green.label:before {
  326. background-color: #A1CF64 !important;
  327. }
  328. /* Hover */
  329. a.ui.green.labels .label:hover,
  330. a.ui.green.label:hover {
  331. background-color: #89B84C !important;
  332. }
  333. .ui.labels a.green.label:hover:before,
  334. .ui.green.labels a.label:hover:before,
  335. a.ui.green.label:hover:before {
  336. background-color: #89B84C !important;
  337. }
  338. /*--- Red ---*/
  339. .ui.red.labels .label,
  340. .ui.red.label {
  341. background-color: #EF4D6D !important;
  342. color: #FFFFFF !important;
  343. }
  344. .ui.labels .red.label:before,
  345. .ui.red.labels .label:before,
  346. .ui.red.label:before {
  347. background-color: #EF4D6D !important;
  348. }
  349. /* Corner */
  350. .ui.red.corner.label {
  351. background-color: transparent;
  352. }
  353. /* Hover */
  354. a.ui.red.labels .label:hover,
  355. a.ui.red.label:hover {
  356. background-color: #DE3859 !important;
  357. color: #FFFFFF !important;
  358. }
  359. .ui.labels a.red.label:hover:before,
  360. .ui.red.labels a.label:hover:before,
  361. a.ui.red.label:hover:before {
  362. background-color: #DE3859 !important;
  363. }
  364. /*--- Blue ---*/
  365. .ui.blue.labels .label,
  366. .ui.blue.label {
  367. background-color: #6ECFF5 !important;
  368. color: #FFFFFF !important;
  369. }
  370. .ui.labels .blue.label:before,
  371. .ui.blue.labels .label:before,
  372. .ui.blue.label:before {
  373. background-color: #6ECFF5 !important;
  374. }
  375. /* Hover */
  376. a.ui.blue.labels .label:hover,
  377. .ui.blue.labels a.label:hover,
  378. a.ui.blue.label:hover {
  379. background-color: #1AB8F3 !important;
  380. color: #FFFFFF !important;
  381. }
  382. .ui.labels a.blue.label:hover:before,
  383. .ui.blue.labels a.label:hover:before,
  384. a.ui.blue.label:hover:before {
  385. background-color: #1AB8F3 !important;
  386. }
  387. /*--- Purple ---*/
  388. .ui.purple.labels .label,
  389. .ui.purple.label {
  390. background-color: #564F8A !important;
  391. color: #FFFFFF !important;
  392. }
  393. .ui.labels .purple.label:before,
  394. .ui.purple.labels .label:before,
  395. .ui.purple.label:before {
  396. background-color: #564F8A !important;
  397. }
  398. /* Hover */
  399. a.ui.purple.labels .label:hover,
  400. .ui.purple.labels a.label:hover,
  401. a.ui.purple.label:hover {
  402. background-color: #3E3773 !important;
  403. color: #FFFFFF !important;
  404. }
  405. .ui.labels a.purple.label:hover:before,
  406. .ui.purple.labels a.label:hover:before,
  407. a.ui.purple.label:hover:before {
  408. background-color: #3E3773 !important;
  409. }
  410. /*--- Pink ---*/
  411. .ui.teal.labels .label,
  412. .ui.teal.label {
  413. background-color: #00B5AD !important;
  414. color: #FFFFFF !important;
  415. }
  416. .ui.labels .teal.label:before,
  417. .ui.teal.labels .label:before,
  418. .ui.teal.label:before {
  419. background-color: #00B5AD !important;
  420. }
  421. /* Hover */
  422. a.ui.teal.labels .label:hover,
  423. .ui.teal.labels a.label:hover,
  424. a.ui.teal.label:hover {
  425. background-color: #009A93 !important;
  426. color: #FFFFFF !important;
  427. }
  428. .ui.labels a.teal.label:hover:before,
  429. .ui.teal.labels a.label:hover:before,
  430. a.ui.teal.tag.label:hover:before {
  431. background-color: #009A93 !important;
  432. }
  433. /*-------------------
  434. Circular
  435. --------------------*/
  436. .ui.circular.label {
  437. margin-right: 0.5em;
  438. margin-top: -1em;
  439. width: 2em;
  440. height: 2em;
  441. padding: 0.5em;
  442. line-height: 1em;
  443. text-align: center;
  444. }
  445. /*-------------------
  446. Pointing
  447. --------------------*/
  448. .ui.pointing.label {
  449. position: relative;
  450. }
  451. .ui.attached.pointing.label {
  452. position: absolute;
  453. }
  454. .ui.pointing.label:before {
  455. position: absolute;
  456. content: "";
  457. width: 0.6em;
  458. height: 0.6em;
  459. background-image: none;
  460. -webkit-transform: rotate(45deg);
  461. -moz-transform: rotate(45deg);
  462. transform: rotate(45deg);
  463. z-index: 2;
  464. -webkit-transition: background 0.1s linear
  465. ;
  466. -moz-transition: background 0.1s linear
  467. ;
  468. -o-transition: background 0.1s linear
  469. ;
  470. -ms-transition: background 0.1s linear
  471. ;
  472. transition: background 0.1s linear
  473. ;
  474. }
  475. /*--- Above ---*/
  476. .ui.pointing.label:before {
  477. background-color: #E8E8E8;
  478. }
  479. .ui.pointing.label,
  480. .ui.pointing.above.label {
  481. margin-top: 1em;
  482. }
  483. .ui.pointing.label:before,
  484. .ui.pointing.above.label:before {
  485. margin-left: -0.3em;
  486. top: -0.3em;
  487. left: 50%;
  488. }
  489. /*--- Below ---*/
  490. .ui.pointing.below.label {
  491. margin-top: 0em;
  492. margin-bottom: 1em;
  493. }
  494. .ui.pointing.below.label:before {
  495. margin-left: -0.3em;
  496. top: auto;
  497. right: auto;
  498. bottom: -0.3em;
  499. left: 50%;
  500. }
  501. /*--- Left ---*/
  502. .ui.pointing.left.label {
  503. margin-top: 0em;
  504. margin-left: 1em;
  505. }
  506. .ui.pointing.left.label:before {
  507. margin-top: -0.3em;
  508. bottom: auto;
  509. right: auto;
  510. top: 50%;
  511. left: 0em;
  512. }
  513. /*--- Right ---*/
  514. .ui.pointing.right.label {
  515. margin-top: 0em;
  516. margin-right: 1em;
  517. }
  518. .ui.pointing.right.label:before {
  519. margin-top: -0.3em;
  520. right: -0.3em;
  521. top: 50%;
  522. bottom: auto;
  523. left: auto;
  524. }
  525. /*------------------
  526. Floating Label
  527. -------------------*/
  528. .ui.floating.label {
  529. position: absolute;
  530. z-index: 100;
  531. top: -1em;
  532. left: 100%;
  533. margin: 0em 0em 0em -1.5em !important;
  534. -webkit-box-shadow: 0px -2px 0 0px rgba(0, 0, 0, 0.1) inset;
  535. -moz-box-shadow: 0px -2px 0 0px rgba(0, 0, 0, 0.1) inset;
  536. box-shadow: 0px -2px 0 0px rgba(0, 0, 0, 0.1) inset;
  537. }
  538. /*-------------------
  539. Sizes
  540. --------------------*/
  541. .ui.label {
  542. font-size: 0.8rem;
  543. }
  544. .ui.small.labels .label,
  545. .ui.small.label {
  546. font-size: 0.7rem;
  547. }
  548. .ui.large.labels .label,
  549. .ui.large.label {
  550. font-size: 1rem;
  551. }