Sha256: f9f0a5c8e94e30228ced951003282a65bbd7a05809c4e9b070d7222f566ad3b7

Contents?: true

Size: 1.09 KB

Versions: 379

Compression:

Stored size: 1.09 KB

Contents

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

.badge {
  // scss-docs-start badge-css-vars
  --#{$prefix}badge-padding-x: #{$badge-padding-x};
  --#{$prefix}badge-padding-y: #{$badge-padding-y};
  @include rfs($badge-font-size, --#{$prefix}badge-font-size);
  --#{$prefix}badge-font-weight: #{$badge-font-weight};
  --#{$prefix}badge-color: #{$badge-color};
  --#{$prefix}badge-border-radius: #{$badge-border-radius};
  // scss-docs-end badge-css-vars

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

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

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

Version data entries

379 entries across 378 versions & 15 rubygems

Version Path
cm-admin-1.5.40 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/_badge.scss
cm-admin-1.5.39 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/_badge.scss
jekyll-theme-centos-2.51.1.beta.55 _sass/bootstrap/_badge.scss
cm-admin-1.5.38 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/_badge.scss
cm-admin-1.5.37 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/_badge.scss
cm-admin-1.5.36 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/_badge.scss
jekyll-theme-centos-2.51.1.beta.54 _sass/bootstrap/_badge.scss
cm-admin-1.5.35 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/_badge.scss
cm-admin-1.5.34 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/_badge.scss
cm-admin-1.5.33 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/_badge.scss
jekyll-theme-centos-2.51.1.beta.53 _sass/bootstrap/_badge.scss
cm-admin-1.5.32 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/_badge.scss
cm-admin-1.5.31 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/_badge.scss
administrate-bootstrap-theme-1.1.0 app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_badge.scss
jekyll-theme-centos-2.51.1.beta.52 _sass/bootstrap/_badge.scss
jekyll-theme-centos-2.51.1.beta.51 _sass/bootstrap/_badge.scss
cm-admin-1.5.30 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/_badge.scss
cm-admin-1.5.29 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/_badge.scss
elixir-toolkit-theme-3.0.1 _sass/bootstrap/_badge.scss
jekyll-theme-centos-2.51.1.beta.50 _sass/bootstrap/_badge.scss