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.

417 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: rgba(0, 0, 0, 0.65);
  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. margin-left: 1em;
  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: #F0F0F0;
  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: #F0F0F0;
  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,
  346. .ui.pointing.above.label {
  347. margin-top: 1em;
  348. }
  349. .ui.pointing.label:before,
  350. .ui.pointing.above.label:before {
  351. margin-left: -0.3em;
  352. top: -0.3em;
  353. left: 50%;
  354. }
  355. /*--- Below ---*/
  356. .ui.pointing.below.label {
  357. margin-top: 0em;
  358. margin-bottom: 1em;
  359. }
  360. .ui.pointing.below.label:before {
  361. margin-left: -0.3em;
  362. top: auto;
  363. right: auto;
  364. bottom: -0.3em;
  365. left: 50%;
  366. }
  367. /*--- Left ---*/
  368. .ui.pointing.left.label {
  369. margin-top: 0em;
  370. margin-left: 1em;
  371. }
  372. .ui.pointing.left.label:before {
  373. margin-top: -0.3em;
  374. bottom: auto;
  375. right: auto;
  376. top: 50%;
  377. left: 0em;
  378. }
  379. /*--- Right ---*/
  380. .ui.pointing.right.label {
  381. margin-top: 0em;
  382. margin-right: 1em;
  383. }
  384. .ui.pointing.right.label:before {
  385. margin-top: -0.3em;
  386. right: -0.3em;
  387. top: 50%;
  388. bottom: auto;
  389. left: auto;
  390. }
  391. /*------------------
  392. Floating Label
  393. -------------------*/
  394. .ui.floating.label {
  395. position: absolute;
  396. z-index: 100;
  397. top: -1em;
  398. left: 100%;
  399. margin: 0em 0em 0em -1.5em !important;
  400. -webkit-box-shadow: 0px -2px 0 0px rgba(0, 0, 0, 0.1) inset;
  401. -moz-box-shadow: 0px -2px 0 0px rgba(0, 0, 0, 0.1) inset;
  402. box-shadow: 0px -2px 0 0px rgba(0, 0, 0, 0.1) inset;
  403. }
  404. /*-------------------
  405. Sizes
  406. --------------------*/
  407. .ui.label {
  408. font-size: 0.8em;
  409. }
  410. .ui.small.labels .label,
  411. .ui.small.label {
  412. font-size: 0.7em;
  413. }
  414. .ui.large.labels .label,
  415. .ui.large.label {
  416. font-size: 1em;
  417. }