Sha256: 50bd00d003e31fbb2fe3a17666af42c387b55fd74100c088ccf7a890439d0c8b

Contents?: true

Size: 1.17 KB

Versions: 76

Compression:

Stored size: 1.17 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;
  }

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

  // 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;
  }
}

Version data entries

76 entries across 76 versions & 17 rubygems

Version Path
twitter-bootstrap-rails-5.0.0 vendor/toolkit/twitter/bootstrap/badges.less
card-1.97.0 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
card-1.96.8 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
sanskrit-documentation-theme-0.1.8 assets/node_modules/bootstrap/less/badges.less
card-1.96.7 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
card-1.96.6 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
card-1.96.5 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
card-1.96.4 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
card-1.96.3 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
card-1.96.2 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
card-1.96.1 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
card-1.96.0 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
scc-less-rails-bootstrap-3.3.5.2 app/frameworks/twitter/bootstrap/badges.less
card-1.95.3 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
card-1.95.2 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
card-1.95.1 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
card-1.95.0 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less
optimacms-0.3.35 node_modules/tinymce-dist/node_modules/bootstrap/less/badges.less
optimacms-0.3.34 node_modules/tinymce-dist/node_modules/bootstrap/less/badges.less
card-1.94.1 mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/badges.less