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.

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