Sha256: f3a1e395c62f8a897baf6e1ee85a5a371961940bff7d2c9b12d6feb1f9b22000

Contents?: true

Size: 1.04 KB

Versions: 38

Compression:

Stored size: 1.04 KB

Contents

// Base class
//
// Requires one of the contextual, color modifier classes for `color` and
// `background-color`.

.badge {
  display: inline-block;
  padding: $badge-padding-y $badge-padding-x;
  font-size: $badge-font-size;
  font-weight: $badge-font-weight;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  @include border-radius($badge-border-radius);

  @at-root a#{&} {
    @include hover-focus {
      text-decoration: none;
    }
  }

  // Empty badges collapse automatically
  &:empty {
    display: none;
  }
}

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

// Pill badges
//
// Make them extra rounded with a modifier to replace v3's badges.

.badge-pill {
  padding-right: $badge-pill-padding-x;
  padding-left: $badge-pill-padding-x;
  @include border-radius($badge-pill-border-radius);
}

// Colors
//
// Contextual variations (linked badges get darker on :hover).

@each $color, $value in $theme-colors {
  .badge-#{$color} {
    @include badge-variant($value);
  }
}

Version data entries

38 entries across 38 versions & 7 rubygems

Version Path
jekyll-theme-fos-1.1.0 _sass/bootstrap/_badge.scss
vertx-howtos-jekyll-theme-0.4.5 _sass/bootstrap/scss/_badge.scss
cms-dita-jekyll-theme-0.1.7 _sass/bootstrap/_badge.scss
cms-dita-jekyll-theme-0.1.6 _sass/bootstrap/_badge.scss
cms-dita-jekyll-theme-0.1.5 _sass/bootstrap/_badge.scss
cms-dita-jekyll-theme-0.1.4 _sass/bootstrap/_badge.scss
cms-dita-jekyll-theme-0.1.3 _sass/bootstrap/_badge.scss
cms-dita-jekyll-theme-0.1.2 _sass/bootstrap/_badge.scss
cms-dita-jekyll-theme-0.1.1 _sass/bootstrap/_badge.scss
cms-dita-jekyll-theme-0.1.0 _sass/bootstrap/_badge.scss
yoyoyo-0.0.9 _sass/_badge.scss
yoyoyo-0.0.8 _sass/_badge.scss
yoyoyo-0.0.7 _sass/_badge.scss
yoyoyo-0.0.6 _sass/_badge.scss
vertx-howtos-jekyll-theme-0.4.4 _sass/bootstrap/scss/_badge.scss
vertx-howtos-jekyll-theme-0.4.3 _sass/bootstrap/scss/_badge.scss
vertx-howtos-jekyll-theme-0.4.2 _sass/bootstrap/scss/_badge.scss
vertx-howtos-jekyll-theme-0.4.1 _sass/bootstrap/scss/_badge.scss
vertx-howtos-jekyll-theme-0.4.0 _sass/bootstrap/scss/_badge.scss
vertx-howtos-jekyll-theme-0.3.2 _sass/bootstrap/scss/_badge.scss