0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-10 22:24:19 +01:00
Bootstrap/less/counters.less
Mark Otto 43da258bd9 Merge branch '2.3.0-wip' into 3.0.0-wip
Conflicts:
	docs/assets/css/bootstrap-responsive.css
	docs/assets/css/bootstrap.css
	docs/examples/hero.html
	less/buttons.less
	less/carousel.less
	less/close.less
	less/dropdowns.less
	less/labels-badges.less
	less/mixins.less
	less/navbar.less
	less/navs.less
	less/pagination.less
	less/responsive-navbar.less
	less/scaffolding.less
	less/sprites.less
	less/thumbnails.less
	less/type.less
2013-02-05 19:53:44 -08:00

59 lines
947 B
Plaintext

//
// Labels and badges
// --------------------------------------------------
// Base classes
.counter {
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.counter {
&:hover,
&:focus {
color: #fff;
text-decoration: none;
cursor: pointer;
}
}
// Quick fix for labels/badges in buttons
.btn {
.counter {
position: relative;
top: -1px;
}
}
.btn-mini {
.counter {
top: 0;
}
}
// Account for counters in navs
.nav-list > .active > a > .counter,
.nav-pills > .active > a > .counter {
color: @link-color;
background-color: #fff;
}
.nav-pills > li > a > .counter {
margin-left: 3px;
}