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.

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