1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00
twbs--bootstrap/less/counters.less

58 lines
936 B
Text
Raw Normal View History

2012-06-29 00:46:45 -04:00
//
// Labels and badges
// --------------------------------------------------
// Base classes
.counter {
display: inline-block;
min-width: 10px;
padding: 3px 7px;
font-size: 12px;
font-weight: bold;
2012-11-30 18:05:23 -05:00
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 {
2012-11-30 18:05:23 -05:00
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;
}