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.

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