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.

554 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: 0em 0em 0em 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: 0.99;
  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. top: auto;
  189. bottom: 0em;
  190. left: auto;
  191. right: 0em;
  192. width: auto;
  193. -webkit-border-radius: 4px 0em 4px 0em;
  194. -moz-border-radius: 4px 0em 4px 0em;
  195. border-radius: 4px 0em 4px 0em;
  196. }
  197. /*-------------------
  198. Corner Label
  199. --------------------*/
  200. .ui.corner.label {
  201. background-color: transparent;
  202. position: absolute;
  203. top: 0em;
  204. right: 0em;
  205. z-index: 10;
  206. margin: 0em;
  207. font-size: 0.9em;
  208. width: 1.75em;
  209. height: 1.75em;
  210. padding: 0em;
  211. text-align: center;
  212. -webkit-transition: color 0.2s ease;
  213. -moz-transition: color 0.2s ease;
  214. -o-transition: color 0.2s ease;
  215. -ms-transition: color 0.2s ease;
  216. transition: color 0.2s ease;
  217. }
  218. .ui.corner.label:after {
  219. position: absolute;
  220. content: "";
  221. right: 0em;
  222. top: 0em;
  223. z-index: -1;
  224. width: 0em;
  225. height: 0em;
  226. border-color: transparent #E8E8E8 transparent transparent;
  227. border-style: solid;
  228. border-width: 0em 2.75em 2.75em 0em;
  229. -webkit-transition: border-color 0.2s ease;
  230. -moz-transition: border-color 0.2s ease;
  231. -o-transition: border-color 0.2s ease;
  232. -ms-transition: border-color 0.2s ease;
  233. transition: border-color 0.2s ease;
  234. }
  235. .ui.corner.label .icon {
  236. margin: 0.35em 0em;
  237. vertical-align: top;
  238. }
  239. .ui.corner.label .text {
  240. display: inline-block;
  241. margin: 0.7em 0em 0em 0em;
  242. width: 2.5em;
  243. font-size: 0.7em;
  244. text-align: center;
  245. -webkit-transform: rotate(45deg);
  246. -moz-transform: rotate(45deg);
  247. -o-transform: rotate(45deg);
  248. -ms-transform: rotate(45deg);
  249. transform: rotate(45deg);
  250. }
  251. /* Left Corner */
  252. .ui.left.corner.label,
  253. .ui.left.corner.label:after {
  254. right: auto;
  255. left: 0em;
  256. }
  257. .ui.left.corner.label:after {
  258. border-width: 2.75em 2.75em 0em 0em;
  259. border-color: #E8E8E8 transparent transparent;
  260. }
  261. .ui.left.corner.label .text {
  262. -webkit-transform: rotate(-45deg);
  263. -moz-transform: rotate(-45deg);
  264. -o-transform: rotate(-45deg);
  265. -ms-transform: rotate(-45deg);
  266. transform: rotate(-45deg);
  267. }
  268. /* Hover */
  269. .ui.corner.label:hover {
  270. background-color: transparent;
  271. }
  272. a.ui.corner.label:hover::after {
  273. border-right-color: #E0E0E0;
  274. }
  275. a.ui.left.corner.label:hover::after {
  276. border-right-color: transparent;
  277. border-top-color: #E0E0E0;
  278. }
  279. /*-------------------
  280. Fluid
  281. --------------------*/
  282. .ui.label.fluid,
  283. .ui.fluid.labels > .label {
  284. width: 100%;
  285. -webkit-box-sizing: border-box;
  286. -moz-box-sizing: border-box;
  287. -ms-box-sizing: border-box;
  288. box-sizing: border-box;
  289. }
  290. /*-------------------
  291. Inverted
  292. --------------------*/
  293. .ui.inverted.labels .label,
  294. .ui.inverted.label {
  295. color: #FFFFFF !important;
  296. }
  297. /*-------------------
  298. Colors
  299. --------------------*/
  300. /*--- Black ---*/
  301. .ui.black.labels .label,
  302. .ui.black.label {
  303. background-color: #5C6166 !important;
  304. color: #FFFFFF !important;
  305. }
  306. .ui.labels .black.label:before,
  307. .ui.black.labels .label:before,
  308. .ui.black.label:before {
  309. background-color: #5C6166 !important;
  310. }
  311. /* Hover */
  312. a.ui.black.labels .label:hover,
  313. a.ui.black.label:hover {
  314. background-color: #888888 !important;
  315. }
  316. .ui.labels a.black.label:hover:before,
  317. .ui.black.labels a.label:hover:before,
  318. a.ui.black.label:hover:before {
  319. background-color: #888888 !important;
  320. }
  321. /*--- Green ---*/
  322. .ui.green.labels .label,
  323. .ui.green.label {
  324. background-color: #A1CF64 !important;
  325. color: #FFFFFF !important;
  326. }
  327. .ui.labels .green.label:before,
  328. .ui.green.labels .label:before,
  329. .ui.green.label:before {
  330. background-color: #A1CF64 !important;
  331. }
  332. /* Hover */
  333. a.ui.green.labels .label:hover,
  334. a.ui.green.label:hover {
  335. background-color: #89B84C !important;
  336. }
  337. .ui.labels a.green.label:hover:before,
  338. .ui.green.labels a.label:hover:before,
  339. a.ui.green.label:hover:before {
  340. background-color: #89B84C !important;
  341. }
  342. /*--- Red ---*/
  343. .ui.red.labels .label,
  344. .ui.red.label {
  345. background-color: #EF4D6D !important;
  346. color: #FFFFFF !important;
  347. }
  348. .ui.labels .red.label:before,
  349. .ui.red.labels .label:before,
  350. .ui.red.label:before {
  351. background-color: #EF4D6D !important;
  352. }
  353. /* Corner */
  354. .ui.red.corner.label {
  355. background-color: transparent;
  356. }
  357. /* Hover */
  358. a.ui.red.labels .label:hover,
  359. a.ui.red.label:hover {
  360. background-color: #DE3859 !important;
  361. color: #FFFFFF !important;
  362. }
  363. .ui.labels a.red.label:hover:before,
  364. .ui.red.labels a.label:hover:before,
  365. a.ui.red.label:hover:before {
  366. background-color: #DE3859 !important;
  367. }
  368. /*--- Blue ---*/
  369. .ui.blue.labels .label,
  370. .ui.blue.label {
  371. background-color: #6ECFF5 !important;
  372. color: #FFFFFF !important;
  373. }
  374. .ui.labels .blue.label:before,
  375. .ui.blue.labels .label:before,
  376. .ui.blue.label:before {
  377. background-color: #6ECFF5 !important;
  378. }
  379. /* Hover */
  380. a.ui.blue.labels .label:hover,
  381. .ui.blue.labels a.label:hover,
  382. a.ui.blue.label:hover {
  383. background-color: #1AB8F3 !important;
  384. color: #FFFFFF !important;
  385. }
  386. .ui.labels a.blue.label:hover:before,
  387. .ui.blue.labels a.label:hover:before,
  388. a.ui.blue.label:hover:before {
  389. background-color: #1AB8F3 !important;
  390. }
  391. /*--- Purple ---*/
  392. .ui.purple.labels .label,
  393. .ui.purple.label {
  394. background-color: #564F8A !important;
  395. color: #FFFFFF !important;
  396. }
  397. .ui.labels .purple.label:before,
  398. .ui.purple.labels .label:before,
  399. .ui.purple.label:before {
  400. background-color: #564F8A !important;
  401. }
  402. /* Hover */
  403. a.ui.purple.labels .label:hover,
  404. .ui.purple.labels a.label:hover,
  405. a.ui.purple.label:hover {
  406. background-color: #3E3773 !important;
  407. color: #FFFFFF !important;
  408. }
  409. .ui.labels a.purple.label:hover:before,
  410. .ui.purple.labels a.label:hover:before,
  411. a.ui.purple.label:hover:before {
  412. background-color: #3E3773 !important;
  413. }
  414. /*--- Pink ---*/
  415. .ui.teal.labels .label,
  416. .ui.teal.label {
  417. background-color: #00B5AD !important;
  418. color: #FFFFFF !important;
  419. }
  420. .ui.labels .teal.label:before,
  421. .ui.teal.labels .label:before,
  422. .ui.teal.label:before {
  423. background-color: #00B5AD !important;
  424. }
  425. /* Hover */
  426. a.ui.teal.labels .label:hover,
  427. .ui.teal.labels a.label:hover,
  428. a.ui.teal.label:hover {
  429. background-color: #009A93 !important;
  430. color: #FFFFFF !important;
  431. }
  432. .ui.labels a.teal.label:hover:before,
  433. .ui.teal.labels a.label:hover:before,
  434. a.ui.teal.tag.label:hover:before {
  435. background-color: #009A93 !important;
  436. }
  437. /*-------------------
  438. Circular
  439. --------------------*/
  440. .ui.circular.labels .label,
  441. .ui.circular.label {
  442. margin-top: -1em;
  443. height: 2em;
  444. padding: 0.5em !important;
  445. line-height: 1em;
  446. text-align: center;
  447. -webkit-border-radius: 500em;
  448. -moz-border-radius: 500em;
  449. border-radius: 500em;
  450. }
  451. /*-------------------
  452. Pointing
  453. --------------------*/
  454. .ui.pointing.label {
  455. position: relative;
  456. }
  457. .ui.attached.pointing.label {
  458. position: absolute;
  459. }
  460. .ui.pointing.label:before {
  461. position: absolute;
  462. content: "";
  463. width: 0.6em;
  464. height: 0.6em;
  465. background-image: none;
  466. -webkit-transform: rotate(45deg);
  467. -moz-transform: rotate(45deg);
  468. transform: rotate(45deg);
  469. z-index: 2;
  470. -webkit-transition: background 0.1s linear
  471. ;
  472. -moz-transition: background 0.1s linear
  473. ;
  474. -o-transition: background 0.1s linear
  475. ;
  476. -ms-transition: background 0.1s linear
  477. ;
  478. transition: background 0.1s linear
  479. ;
  480. }
  481. /*--- Above ---*/
  482. .ui.pointing.label:before {
  483. background-color: #E8E8E8;
  484. }
  485. .ui.pointing.label,
  486. .ui.pointing.above.label {
  487. margin-top: 1em;
  488. }
  489. .ui.pointing.label:before,
  490. .ui.pointing.above.label:before {
  491. margin-left: -0.3em;
  492. top: -0.3em;
  493. left: 50%;
  494. }
  495. /*--- Below ---*/
  496. .ui.pointing.below.label {
  497. margin-top: 0em;
  498. margin-bottom: 1em;
  499. }
  500. .ui.pointing.below.label:before {
  501. margin-left: -0.3em;
  502. top: auto;
  503. right: auto;
  504. bottom: -0.3em;
  505. left: 50%;
  506. }
  507. /*--- Left ---*/
  508. .ui.pointing.left.label {
  509. margin-top: 0em;
  510. margin-left: 1em;
  511. }
  512. .ui.pointing.left.label:before {
  513. margin-top: -0.3em;
  514. bottom: auto;
  515. right: auto;
  516. top: 50%;
  517. left: 0em;
  518. }
  519. /*--- Right ---*/
  520. .ui.pointing.right.label {
  521. margin-top: 0em;
  522. margin-right: 1em;
  523. }
  524. .ui.pointing.right.label:before {
  525. margin-top: -0.3em;
  526. right: -0.3em;
  527. top: 50%;
  528. bottom: auto;
  529. left: auto;
  530. }
  531. /*------------------
  532. Floating Label
  533. -------------------*/
  534. .ui.floating.label {
  535. position: absolute;
  536. z-index: 100;
  537. top: -1em;
  538. left: 100%;
  539. margin: 0em 0em 0em -1.5em !important;
  540. }
  541. /*-------------------
  542. Sizes
  543. --------------------*/
  544. .ui.label {
  545. font-size: 0.8rem;
  546. }
  547. .ui.small.labels .label,
  548. .ui.small.label {
  549. font-size: 0.7rem;
  550. }
  551. .ui.large.labels .label,
  552. .ui.large.label {
  553. font-size: 1rem;
  554. }