badges.css 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /* Labels */
  2. .bs-label {
  3. font-size: 80%;
  4. line-height: 1;
  5. display: inline;
  6. padding: .3em .6em .5em;
  7. text-align: center;
  8. text-transform: uppercase;
  9. vertical-align: baseline;
  10. white-space: nowrap;
  11. color: #fff;
  12. border-radius: .25em;
  13. }
  14. .content-box .bs-label { padding:.3em .6em .3em; }
  15. .bs-label[href]:hover,
  16. .bs-label[href]:focus {
  17. cursor: pointer;
  18. text-decoration: none;
  19. color: #fff;
  20. }
  21. .bs-label:empty {
  22. display: none;
  23. }
  24. .btn .bs-label {
  25. position: relative;
  26. top: -1px;
  27. }
  28. .label-default {
  29. background-color: #999;
  30. }
  31. .label-default[href]:hover,
  32. .label-default[href]:focus {
  33. background-color: #808080;
  34. }
  35. /* Badges */
  36. .badge,
  37. .bs-badge {
  38. font-size: 11px;
  39. font-weight: bold;
  40. line-height: 19px;
  41. display: inline-block;
  42. min-width: 20px;
  43. /*height: 20px;*/
  44. padding: 0 5px 0 4px;
  45. text-align: center;
  46. vertical-align: baseline;
  47. white-space: nowrap;
  48. color: #fff;
  49. border-radius: 10px;
  50. }
  51. .badge-small {
  52. min-width: 10px;
  53. height: 10px;
  54. }
  55. .bs-badge:empty {
  56. display: none;
  57. }
  58. .btn .bs-badge {
  59. position: relative;
  60. top: -2px;
  61. }
  62. .bs-badge.badge-absolute {
  63. position: absolute;
  64. z-index: 5;
  65. top: -10px;
  66. left: -15px;
  67. }
  68. .bs-badge.badge-absolute.float-right {
  69. right: -15px;
  70. left: auto;
  71. }
  72. /* Status badge */
  73. .status-badge {
  74. position: relative;
  75. display: inline-block;
  76. }
  77. .status-badge .small-badge {
  78. position: absolute;
  79. right: 1px;
  80. bottom: -2px;
  81. }
  82. .small-badge {
  83. overflow: hidden;
  84. width: 12px;
  85. height: 12px;
  86. padding: 0;
  87. border: #fff solid 2px !important;
  88. border-radius: 20px;
  89. }