Sha256: f20d636c4d5f23c846448eb64155b594a319e62329f5f1001f680b35972a1ae4

Contents?: true

Size: 1.07 KB

Versions: 96

Compression:

Stored size: 1.07 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: baseline;
  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 & {
    top: 0;
    padding: 1px 5px;
  }

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

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

96 entries across 93 versions & 13 rubygems

Version Path
ndr_error-1.0.0 app/assets/stylesheets/ndr_error/bootstrap/_badges.scss
adhoq-0.0.7 app/assets/stylesheets/adhoq/bootstrap/_badges.scss
rails_admin-0.8.1 app/assets/stylesheets/rails_admin/bootstrap/_badges.scss
adhoq-0.0.6 app/assets/stylesheets/adhoq/bootstrap/_badges.scss
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rails_admin-0.7.0/app/assets/stylesheets/rails_admin/bootstrap/_badges.scss
rails_admin-0.7.0 app/assets/stylesheets/rails_admin/bootstrap/_badges.scss
spiderfw-0.6.38 apps/core/components/public/bootstrap_3/scss/_badges.scss
rails_admin-0.6.8 app/assets/stylesheets/rails_admin/bootstrap/_badges.scss
adhoq-0.0.5 app/assets/stylesheets/adhoq/bootstrap/_badges.scss
adhoq-0.0.4 app/assets/stylesheets/adhoq/bootstrap/_badges.scss
assets-rails-0.2.0 app/assets/stylesheets/bootstrap/v3.2.0/_badges.scss
assets-rails-0.2.0 app/assets/stylesheets/bootstrap/v3.3.0/_badges.scss
lanes-0.1.9 client/lanes/styles/bootstrap/old/_badges.scss
spiderfw-0.6.37 apps/core/components/public/bootstrap_3/scss/_badges.scss
lanes-0.1.8 client/lanes/styles/bootstrap/old/_badges.scss
spiderfw-0.6.35 apps/core/components/public/bootstrap_3/scss/_badges.scss
lanes-0.1.7 client/lanes/styles/bootstrap/old/_badges.scss
rails_admin-0.6.7 app/assets/stylesheets/rails_admin/bootstrap/_badges.scss
spiderfw-0.6.34 apps/core/components/public/bootstrap_3/scss/_badges.scss
lanes-0.1.6 client/lanes/styles/bootstrap/old/_badges.scss