bootstrap-source/bootstrap-3.0.3/less/badges.less
author stetrabby <info@trabucchi.de>
Fri, 20 Dec 2013 22:49:16 +0100
changeset 54 0ded9d7748b7
permissions -rwxr-xr-x
initial less based on the pymove3d.css
info@54
     1
//
info@54
     2
// Badges
info@54
     3
// --------------------------------------------------
info@54
     4
info@54
     5
info@54
     6
// Base classes
info@54
     7
.badge {
info@54
     8
  display: inline-block;
info@54
     9
  min-width: 10px;
info@54
    10
  padding: 3px 7px;
info@54
    11
  font-size: @font-size-small;
info@54
    12
  font-weight: @badge-font-weight;
info@54
    13
  color: @badge-color;
info@54
    14
  line-height: @badge-line-height;
info@54
    15
  vertical-align: baseline;
info@54
    16
  white-space: nowrap;
info@54
    17
  text-align: center;
info@54
    18
  background-color: @badge-bg;
info@54
    19
  border-radius: @badge-border-radius;
info@54
    20
info@54
    21
  // Empty badges collapse automatically (not available in IE8)
info@54
    22
  &:empty {
info@54
    23
    display: none;
info@54
    24
  }
info@54
    25
info@54
    26
  // Quick fix for badges in buttons
info@54
    27
  .btn & {
info@54
    28
    position: relative;
info@54
    29
    top: -1px;
info@54
    30
  }
info@54
    31
}
info@54
    32
info@54
    33
// Hover state, but only for links
info@54
    34
a.badge {
info@54
    35
  &:hover,
info@54
    36
  &:focus {
info@54
    37
    color: @badge-link-hover-color;
info@54
    38
    text-decoration: none;
info@54
    39
    cursor: pointer;
info@54
    40
  }
info@54
    41
}
info@54
    42
info@54
    43
// Account for counters in navs
info@54
    44
a.list-group-item.active > .badge,
info@54
    45
.nav-pills > .active > a > .badge {
info@54
    46
  color: @badge-active-color;
info@54
    47
  background-color: @badge-active-bg;
info@54
    48
}
info@54
    49
.nav-pills > li > a > .badge {
info@54
    50
  margin-left: 3px;
info@54
    51
}
Impressum Datenschutzerklärung