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

49 lines
828 B
Text
Raw Normal View History

2012-06-29 00:46:45 -04:00
//
// Labels and badges
// --------------------------------------------------
// Base classes
.counter {
display: inline-block;
padding: 2px 7px;
font-size: @font-size-base * .846;
font-weight: bold;
2012-03-23 03:40:10 -04:00
line-height: 14px; // ensure proper line-height if floated
2012-11-30 18:05:23 -05:00
color: #fff;
vertical-align: baseline;
white-space: nowrap;
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
background-color: @grayLight;
border-radius: 10px;
min-width: 10px;
text-align: center;
// 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;
}
}