2012-06-29 04:46:45 +00:00
|
|
|
//
|
|
|
|
// Labels and badges
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2012-03-22 23:02:00 +00:00
|
|
|
|
|
|
|
// Base classes
|
2013-01-18 21:35:23 +00:00
|
|
|
.counter {
|
2012-10-01 19:04:10 +00:00
|
|
|
display: inline-block;
|
2013-01-18 21:35:23 +00:00
|
|
|
padding: 2px 7px;
|
2012-11-30 22:45:25 +00:00
|
|
|
font-size: @font-size-base * .846;
|
2012-03-22 23:02:00 +00:00
|
|
|
font-weight: bold;
|
2012-03-23 07:40:10 +00:00
|
|
|
line-height: 14px; // ensure proper line-height if floated
|
2012-11-30 23:05:23 +00:00
|
|
|
color: #fff;
|
2012-04-18 16:47:30 +00:00
|
|
|
vertical-align: baseline;
|
2012-03-22 23:02:00 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
|
|
|
background-color: @grayLight;
|
2013-01-18 21:35:23 +00:00
|
|
|
border-radius: 10px;
|
|
|
|
min-width: 10px;
|
|
|
|
text-align: center;
|
2012-03-22 23:02:00 +00:00
|
|
|
|
2012-12-20 05:18:32 +00:00
|
|
|
// Empty labels/badges collapse
|
2012-11-03 20:18:23 +00:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-03-22 23:02:00 +00:00
|
|
|
// Hover state, but only for links
|
2013-01-18 21:35:23 +00:00
|
|
|
a.counter {
|
2012-12-20 05:18:32 +00:00
|
|
|
&:hover {
|
2012-11-30 23:05:23 +00:00
|
|
|
color: #fff;
|
2012-03-22 23:02:00 +00:00
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-30 20:25:27 +00:00
|
|
|
// Quick fix for labels/badges in buttons
|
|
|
|
.btn {
|
2013-01-18 21:35:23 +00:00
|
|
|
.counter {
|
2012-07-30 20:25:27 +00:00
|
|
|
position: relative;
|
|
|
|
top: -1px;
|
|
|
|
}
|
|
|
|
}
|
2012-07-30 22:54:03 +00:00
|
|
|
.btn-mini {
|
2013-01-18 21:35:23 +00:00
|
|
|
.counter {
|
2012-07-30 22:54:03 +00:00
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|