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.

420 lines
9.3 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. background-color: #E8E8E8;
  19. padding: 0.5em 0.8em;
  20. color: rgba(0, 0, 0, 0.65);
  21. text-transform: uppercase;
  22. -webkit-border-radius: 0.325em;
  23. -moz-border-radius: 0.325em;
  24. border-radius: 0.325em;
  25. -webkit-transition: background 0.1s linear
  26. ;
  27. -moz-transition: background 0.1s linear
  28. ;
  29. -o-transition: background 0.1s linear
  30. ;
  31. -ms-transition: background 0.1s linear
  32. ;
  33. transition: background 0.1s linear
  34. ;
  35. }
  36. a.ui.label {
  37. cursor: pointer;
  38. }
  39. .ui.label.disabled {
  40. opacity: 0.5;
  41. }
  42. .ui.label .detail {
  43. display: inline-block;
  44. margin-left: 1em;
  45. font-weight: bold;
  46. opacity: 0.8;
  47. }
  48. .ui.label .icon.close {
  49. cursor: pointer;
  50. margin-left: 0.5em;
  51. opacity: 0.7;
  52. -webkit-transition: background 0.1s linear
  53. ;
  54. -moz-transition: background 0.1s linear
  55. ;
  56. -o-transition: background 0.1s linear
  57. ;
  58. -ms-transition: background 0.1s linear
  59. ;
  60. transition: background 0.1s linear
  61. ;
  62. }
  63. /*******************************
  64. States
  65. *******************************/
  66. /*-------------------
  67. Hover
  68. --------------------*/
  69. a.ui.labels .label:hover,
  70. a.ui.label:hover {
  71. background-color: #E0E0E0;
  72. color: rgba(0, 0, 0, 0.7);
  73. }
  74. .ui.labels a.label:hover:before,
  75. a.ui.label:hover:before {
  76. background-color: #E0E0E0;
  77. color: rgba(0, 0, 0, 0.7);
  78. }
  79. .ui.label .icon.close:hover {
  80. opacity: 1;
  81. }
  82. /*******************************
  83. Variations
  84. *******************************/
  85. /*-------------------
  86. Tag
  87. --------------------*/
  88. .ui.tag.labels .label,
  89. .ui.tag.label {
  90. margin-left: 1em;
  91. position: relative;
  92. padding: 0.33em 1.3em 0.33em 1.4em;
  93. -webkit-border-radius: 0px 3px 3px 0px;
  94. -moz-border-radius: 0px 3px 3px 0px;
  95. border-radius: 0px 3px 3px 0px;
  96. }
  97. .ui.tag.labels .label:before,
  98. .ui.tag.label:before {
  99. position: absolute;
  100. top: 0.3em;
  101. left: 0.3em;
  102. content: '';
  103. margin-left: -1em;
  104. background-image: none;
  105. width: 1.5em;
  106. height: 1.5em;
  107. -webkit-transform: rotate(45deg);
  108. -moz-transform: rotate(45deg);
  109. transform: rotate(45deg);
  110. -webkit-transition: background 0.1s linear
  111. ;
  112. -moz-transition: background 0.1s linear
  113. ;
  114. -o-transition: background 0.1s linear
  115. ;
  116. -ms-transition: background 0.1s linear
  117. ;
  118. transition: background 0.1s linear
  119. ;
  120. }
  121. .ui.tag.labels .label:after,
  122. .ui.tag.label:after {
  123. position: absolute;
  124. content: '';
  125. top: 50%;
  126. left: -0.25em;
  127. margin-top: -0.3em;
  128. background-color: #FFFFFF;
  129. width: 0.55em;
  130. height: 0.55em;
  131. -webkit-box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  132. -moz-box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  133. box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  134. -moz-border-radius: 100px 100px 100px 100px;
  135. -webkit-border-radius: 100px 100px 100px 100px;
  136. border-radius: 100px 100px 100px 100px;
  137. }
  138. /*-------------------
  139. Attached
  140. --------------------*/
  141. .ui.attached.label {
  142. position: absolute;
  143. top: 0px;
  144. left: 0px;
  145. margin-top: 0px !important;
  146. background-color: transparent;
  147. -webkit-border-radius: 4px 0px 0px 0px;
  148. -moz-border-radius: 4px 0px 0px 0px;
  149. border-radius: 4px 0px 0px 0px;
  150. }
  151. .ui.right.attached.label {
  152. left: auto;
  153. right: 0px;
  154. -webkit-border-radius: 0px 4px 0px 0px;
  155. -moz-border-radius: 0px 4px 0px 0px;
  156. border-radius: 0px 4px 0px 0px;
  157. }
  158. .ui.bottom.attached.label {
  159. top: auto;
  160. bottom: 0px;
  161. -webkit-border-radius: 0px 0px 0px 4px;
  162. -moz-border-radius: 0px 0px 0px 4px;
  163. border-radius: 0px 0px 0px 4px;
  164. }
  165. .ui.bottom.right.attached.label {
  166. -webkit-border-radius: 0px 0px 4px 0px;
  167. -moz-border-radius: 0px 0px 4px 0px;
  168. border-radius: 0px 0px 4px 0px;
  169. }
  170. /*-------------------
  171. Fluid
  172. --------------------*/
  173. .ui.label.fluid,
  174. .ui.fluid.labels > .label {
  175. width: 100%;
  176. -webkit-box-sizing: border-box;
  177. -moz-box-sizing: border-box;
  178. -ms-box-sizing: border-box;
  179. box-sizing: border-box;
  180. }
  181. /*-------------------
  182. Colors
  183. --------------------*/
  184. /*--- Black ---*/
  185. .ui.black.labels .label,
  186. .ui.black.label {
  187. background-color: #5C6166 !important;
  188. color: #FFFFFF !important;
  189. }
  190. .ui.labels .black.label:before,
  191. .ui.black.labels .label:before,
  192. .ui.black.label:before {
  193. background-color: #5C6166 !important;
  194. }
  195. /* Hover */
  196. a.ui.black.labels .label:hover,
  197. a.ui.black.label:hover {
  198. background-color: #888888 !important;
  199. }
  200. .ui.labels a.black.label:hover:before,
  201. .ui.black.labels a.label:hover:before,
  202. a.ui.black.label:hover:before {
  203. background-color: #888888 !important;
  204. }
  205. /*--- Green ---*/
  206. .ui.green.labels .label,
  207. .ui.green.label {
  208. background-color: #A1CF64 !important;
  209. color: #FFFFFF !important;
  210. }
  211. .ui.labels .green.label:before,
  212. .ui.green.labels .label:before,
  213. .ui.green.label:before {
  214. background-color: #A1CF64 !important;
  215. }
  216. /* Hover */
  217. a.ui.green.labels .label:hover,
  218. a.ui.green.label:hover {
  219. background-color: #89B84C !important;
  220. }
  221. .ui.labels a.green.label:hover:before,
  222. .ui.green.labels a.label:hover:before,
  223. a.ui.green.label:hover:before {
  224. background-color: #89B84C !important;
  225. }
  226. /*--- Red ---*/
  227. .ui.red.labels .label,
  228. .ui.red.label {
  229. background-color: #EF4D6D !important;
  230. color: #FFFFFF !important;
  231. }
  232. .ui.labels .red.label:before,
  233. .ui.red.labels .label:before,
  234. .ui.red.label:before {
  235. background-color: #EF4D6D !important;
  236. }
  237. /* Hover */
  238. a.ui.red.labels .label:hover,
  239. a.ui.red.label:hover {
  240. background-color: #DE3859 !important;
  241. color: #FFFFFF !important;
  242. }
  243. .ui.labels a.red.label:hover:before,
  244. .ui.red.labels a.label:hover:before,
  245. a.ui.red.label:hover:before {
  246. background-color: #DE3859 !important;
  247. }
  248. /*--- Blue ---*/
  249. .ui.blue.labels .label,
  250. .ui.blue.label {
  251. background-color: #6ECFF5 !important;
  252. color: #FFFFFF !important;
  253. }
  254. .ui.labels .blue.label:before,
  255. .ui.blue.labels .label:before,
  256. .ui.blue.label:before {
  257. background-color: #6ECFF5 !important;
  258. }
  259. /* Hover */
  260. a.ui.blue.labels .label:hover,
  261. a.ui.blue.label:hover {
  262. background-color: #1AB8F3 !important;
  263. color: #FFFFFF !important;
  264. }
  265. .ui.labels a.blue.label:hover:before,
  266. .ui.blue.labels a.label:hover:before,
  267. a.ui.blue.label:hover:before {
  268. background-color: #1AB8F3 !important;
  269. }
  270. /*--- Purple ---*/
  271. .ui.purple.labels .label,
  272. .ui.purple.label {
  273. background-color: #564F8A !important;
  274. color: #FFFFFF !important;
  275. }
  276. .ui.labels .purple.label:before,
  277. .ui.purple.labels .label:before,
  278. .ui.purple.label:before {
  279. background-color: #564F8A !important;
  280. }
  281. /* Hover */
  282. a.ui.purple.labels .label:hover,
  283. a.ui.purple.label:hover {
  284. background-color: #3E3773 !important;
  285. color: #FFFFFF !important;
  286. }
  287. .ui.labels a.purple.label:hover:before,
  288. .ui.purple.labels a.label:hover:before,
  289. a.ui.purple.label:hover:before {
  290. background-color: #3E3773 !important;
  291. }
  292. /*--- Pink ---*/
  293. .ui.teal.labels .label,
  294. .ui.teal.label {
  295. background-color: #00B5AD !important;
  296. color: #FFFFFF !important;
  297. }
  298. .ui.labels .teal.label:before,
  299. .ui.teal.labels .label:before,
  300. .ui.teal.label:before {
  301. background-color: #00B5AD !important;
  302. }
  303. /* Hover */
  304. a.ui.teal.labels .label:hover,
  305. a.ui.teal.label:hover {
  306. background-color: #009A93 !important;
  307. color: #FFFFFF !important;
  308. }
  309. .ui.labels a.teal.label:hover:before,
  310. .ui.teal.labels a.label:hover:before,
  311. a.ui.teal.tag.label:hover:before {
  312. background-color: #009A93 !important;
  313. }
  314. /*-------------------
  315. Pointing
  316. --------------------*/
  317. .ui.pointing.label {
  318. position: relative;
  319. }
  320. .ui.attached.pointing.label {
  321. position: absolute;
  322. }
  323. .ui.pointing.label:before {
  324. position: absolute;
  325. content: "";
  326. width: 0.6em;
  327. height: 0.6em;
  328. background-image: none;
  329. -webkit-transform: rotate(45deg);
  330. -moz-transform: rotate(45deg);
  331. transform: rotate(45deg);
  332. z-index: 2;
  333. -webkit-transition: background 0.1s linear
  334. ;
  335. -moz-transition: background 0.1s linear
  336. ;
  337. -o-transition: background 0.1s linear
  338. ;
  339. -ms-transition: background 0.1s linear
  340. ;
  341. transition: background 0.1s linear
  342. ;
  343. }
  344. /*--- Above ---*/
  345. .ui.pointing.label:before {
  346. background-color: #E8E8E8;
  347. }
  348. .ui.pointing.label,
  349. .ui.pointing.above.label {
  350. margin-top: 1em;
  351. }
  352. .ui.pointing.label:before,
  353. .ui.pointing.above.label:before {
  354. margin-left: -0.3em;
  355. top: -0.3em;
  356. left: 50%;
  357. }
  358. /*--- Below ---*/
  359. .ui.pointing.below.label {
  360. margin-top: 0em;
  361. margin-bottom: 1em;
  362. }
  363. .ui.pointing.below.label:before {
  364. margin-left: -0.3em;
  365. top: auto;
  366. right: auto;
  367. bottom: -0.3em;
  368. left: 50%;
  369. }
  370. /*--- Left ---*/
  371. .ui.pointing.left.label {
  372. margin-top: 0em;
  373. margin-left: 1em;
  374. }
  375. .ui.pointing.left.label:before {
  376. margin-top: -0.3em;
  377. bottom: auto;
  378. right: auto;
  379. top: 50%;
  380. left: 0em;
  381. }
  382. /*--- Right ---*/
  383. .ui.pointing.right.label {
  384. margin-top: 0em;
  385. margin-right: 1em;
  386. }
  387. .ui.pointing.right.label:before {
  388. margin-top: -0.3em;
  389. right: -0.3em;
  390. top: 50%;
  391. bottom: auto;
  392. left: auto;
  393. }
  394. /*------------------
  395. Floating Label
  396. -------------------*/
  397. .ui.floating.label {
  398. position: absolute;
  399. z-index: 100;
  400. top: -1em;
  401. left: 100%;
  402. margin: 0em 0em 0em -1.5em !important;
  403. -webkit-box-shadow: 0px -2px 0 0px rgba(0, 0, 0, 0.1) inset;
  404. -moz-box-shadow: 0px -2px 0 0px rgba(0, 0, 0, 0.1) inset;
  405. box-shadow: 0px -2px 0 0px rgba(0, 0, 0, 0.1) inset;
  406. }
  407. /*-------------------
  408. Sizes
  409. --------------------*/
  410. .ui.label {
  411. font-size: 0.8em;
  412. }
  413. .ui.small.labels .label,
  414. .ui.small.label {
  415. font-size: 0.7em;
  416. }
  417. .ui.large.labels .label,
  418. .ui.large.label {
  419. font-size: 1em;
  420. }