diff options
| author | Mark Otto <[email protected]> | 2013-01-19 17:06:40 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-01-19 17:06:40 -0800 |
| commit | c21c3f101b334fb176b5fc4efd437b7da724e1fc (patch) | |
| tree | 248b8cb9d1b5f7b8e9e7c27b9f4906bbac959dd2 /less | |
| parent | 64bc5dc91f2a0770d3d563c53600a82f92f53c0f (diff) | |
| parent | 67ec13a44c945c61735882ce7e78174ea9e32d74 (diff) | |
| download | bootstrap-c21c3f101b334fb176b5fc4efd437b7da724e1fc.tar.xz bootstrap-c21c3f101b334fb176b5fc4efd437b7da724e1fc.zip | |
Merge branch '3.0.0-wip-badges-to-counters' of https://github.com/vickash/bootstrap into vickash-3.0.0-wip-badges-to-counters
Diffstat (limited to 'less')
| -rw-r--r-- | less/bootstrap.less | 2 | ||||
| -rw-r--r-- | less/counters.less (renamed from less/badges.less) | 28 |
2 files changed, 9 insertions, 21 deletions
diff --git a/less/bootstrap.less b/less/bootstrap.less index d40984230..0a4dd9ca5 100644 --- a/less/bootstrap.less +++ b/less/bootstrap.less @@ -49,7 +49,7 @@ @import "alerts.less"; @import "thumbnails.less"; @import "media.less"; -@import "badges.less"; +@import "counters.less"; @import "progress-bars.less"; @import "accordion.less"; @import "carousel.less"; diff --git a/less/badges.less b/less/counters.less index 5511bc81f..6f9cc00fc 100644 --- a/less/badges.less +++ b/less/counters.less @@ -4,9 +4,9 @@ // Base classes -.badge { +.counter { display: inline-block; - padding: 2px 4px; + padding: 2px 7px; font-size: @font-size-base * .846; font-weight: bold; line-height: 14px; // ensure proper line-height if floated @@ -15,7 +15,9 @@ white-space: nowrap; text-shadow: 0 -1px 0 rgba(0,0,0,.25); background-color: @grayLight; - border-radius: 3px; + border-radius: 10px; + min-width: 10px; + text-align: center; // Empty labels/badges collapse &:empty { @@ -24,7 +26,7 @@ } // Hover state, but only for links -a.badge { +a.counter { &:hover { color: #fff; text-decoration: none; @@ -32,29 +34,15 @@ a.badge { } } -// Colors -// Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute) -.badge { - // Important (red) - &-danger { background-color: @state-error-text; } - &-danger[href] { background-color: darken(@state-error-text, 10%); } - // Warnings (orange) - &-warning { background-color: #f89406; } - &-warning[href] { background-color: darken(#f89406, 10%); } - // Success (green) - &-success { background-color: @state-success-text; } - &-success[href] { background-color: darken(@state-success-text, 10%); } -} - // Quick fix for labels/badges in buttons .btn { - .badge { + .counter { position: relative; top: -1px; } } .btn-mini { - .badge { + .counter { top: 0; } } |
