diff options
| author | Mark Otto <[email protected]> | 2013-02-17 21:06:20 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-02-17 21:06:20 -0800 |
| commit | f6ec2c5dac371b0b1d56abd65be548ee5ed075c8 (patch) | |
| tree | c1dbdb5f9d9c0e94659cf1dcf27080ee193abb91 /less/badges.less | |
| parent | d3cc8f79f42be8a52fbf3e8eaf3f7d0f6623fa2e (diff) | |
| download | bootstrap-f6ec2c5dac371b0b1d56abd65be548ee5ed075c8.tar.xz bootstrap-f6ec2c5dac371b0b1d56abd65be548ee5ed075c8.zip | |
Drop the recently added .counter class for .badge
Diffstat (limited to 'less/badges.less')
| -rw-r--r-- | less/badges.less | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/less/badges.less b/less/badges.less new file mode 100644 index 000000000..4f1e71eda --- /dev/null +++ b/less/badges.less @@ -0,0 +1,58 @@ +// +// Badges +// -------------------------------------------------- + + +// Base classes +.badge { + display: inline-block; + min-width: 10px; + padding: 3px 7px; + font-size: 12px; + font-weight: bold; + color: #fff; + line-height: 1; + vertical-align: middle; + white-space: nowrap; + text-align: center; + background-color: @grayLight; + border-radius: 10px; + + // Empty labels/badges collapse + &:empty { + display: none; + } +} + +// Hover state, but only for links +a.badge { + &:hover, + &:focus { + color: #fff; + text-decoration: none; + cursor: pointer; + } +} + +// Quick fix for labels/badges in buttons +.btn { + .badge { + position: relative; + top: -1px; + } +} +.btn-mini { + .badge { + top: 0; + } +} + +// Account for counters in navs +.nav-list > .active > a > .badge, +.nav-pills > .active > a > .badge { + color: @link-color; + background-color: #fff; +} +.nav-pills > li > a > .badge { + margin-left: 3px; +} |
