Sha256: 821c2b0fb5bed39b88debc04730cd0572187d553b4062f013abeaf5a23f782be

Contents?: true

Size: 1.2 KB

Versions: 1083

Compression:

Stored size: 1.2 KB

Contents

//
// Badges
// --------------------------------------------------


// Base class
.badge {
  display: inline-block;
  min-width: 10px;
  padding: 3px 7px;
  font-size: $font-size-small;
  font-weight: $badge-font-weight;
  color: $badge-color;
  line-height: $badge-line-height;
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
  background-color: $badge-bg;
  border-radius: $badge-border-radius;

  // Empty badges collapse automatically (not available in IE8)
  &:empty {
    display: none;
  }

  // Quick fix for badges in buttons
  .btn & {
    position: relative;
    top: -1px;
  }

  .btn-xs &,
  .btn-group-xs > .btn & {
    top: 0;
    padding: 1px 5px;
  }

  // [converter] extracted a& to a.badge

  // Account for badges in navs
  .list-group-item.active > &,
  .nav-pills > .active > a > & {
    color: $badge-active-color;
    background-color: $badge-active-bg;
  }

  .list-group-item > & {
    float: right;
  }

  .list-group-item > & + & {
    margin-right: 5px;
  }

  .nav-pills > li > a > & {
    margin-left: 3px;
  }
}

// Hover state, but only for links
a.badge {
  &:hover,
  &:focus {
    color: $badge-link-hover-color;
    text-decoration: none;
    cursor: pointer;
  }
}

Version data entries

1,083 entries across 1,070 versions & 42 rubygems

Version Path
bravissimo-0.1.0 _sass/bootstrap/_badges.scss
radius-rails-3.1.4 app/assets/stylesheets/radius-theme/bootstrap/bootstrap/_badges.scss
mumuki-styles-2.0.3 app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss
mumuki-styles-2.0.2 app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss
mumuki-styles-2.0.1 app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss
mumuki-styles-2.0.0 app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss
qablog-0.1.0 _sass/bootstrap/_badges.scss
mumuki-styles-1.24.0 app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss
mumuki-styles-1.23.1 app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss
mumuki-styles-1.23.0 app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss
mumuki-styles-1.22.1 app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss
mumuki-styles-1.22.0 app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss
chiefsan.github.io-0.0 _sass/bootstrap/_badges.scss
jekyll-bootflat-0.3.2 _sass/bootstrap/_badges.scss
jekyll-bootflat-0.3.1 _sass/bootstrap/_badges.scss
mumuki-styles-1.21.4 app/assets/stylesheets/vendor/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss
jekyll-wedding-0.5.0 _sass/bootstrap/_badges.scss
jumbo-jekyll-theme-5.6.9.4 _sass/bootstrap/_badges.scss
jumbo-jekyll-theme-5.6.9.3 _sass/bootstrap/_badges.scss
jumbo-jekyll-theme-5.6.9.2 _sass/bootstrap/_badges.scss