2012-06-29 00:46:45 -04:00
|
|
|
//
|
|
|
|
// Labels and badges
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2012-03-22 19:02:00 -04:00
|
|
|
|
|
|
|
// Base classes
|
2013-01-18 16:35:23 -05:00
|
|
|
.counter {
|
2012-10-01 15:04:10 -04:00
|
|
|
display: inline-block;
|
2013-01-19 21:53:41 -05:00
|
|
|
min-width: 10px;
|
|
|
|
padding: 3px 7px;
|
|
|
|
font-size: 12px;
|
2012-03-22 19:02:00 -04:00
|
|
|
font-weight: bold;
|
2012-11-30 18:05:23 -05:00
|
|
|
color: #fff;
|
2013-01-19 21:53:41 -05:00
|
|
|
line-height: 1;
|
|
|
|
vertical-align: middle;
|
2012-03-22 19:02:00 -04:00
|
|
|
white-space: nowrap;
|
2013-01-19 21:53:41 -05:00
|
|
|
text-align: center;
|
2012-03-22 19:02:00 -04:00
|
|
|
background-color: @grayLight;
|
2013-01-18 16:35:23 -05:00
|
|
|
border-radius: 10px;
|
2012-03-22 19:02:00 -04:00
|
|
|
|
2012-12-20 00:18:32 -05:00
|
|
|
// Empty labels/badges collapse
|
2012-11-03 16:18:23 -04:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-03-22 19:02:00 -04:00
|
|
|
// Hover state, but only for links
|
2013-01-18 16:35:23 -05:00
|
|
|
a.counter {
|
2012-12-20 00:18:32 -05:00
|
|
|
&:hover {
|
2012-11-30 18:05:23 -05:00
|
|
|
color: #fff;
|
2012-03-22 19:02:00 -04:00
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-30 16:25:27 -04:00
|
|
|
// Quick fix for labels/badges in buttons
|
|
|
|
.btn {
|
2013-01-18 16:35:23 -05:00
|
|
|
.counter {
|
2012-07-30 16:25:27 -04:00
|
|
|
position: relative;
|
|
|
|
top: -1px;
|
|
|
|
}
|
|
|
|
}
|
2012-07-30 18:54:03 -04:00
|
|
|
.btn-mini {
|
2013-01-18 16:35:23 -05:00
|
|
|
.counter {
|
2012-07-30 18:54:03 -04:00
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
2013-01-19 21:53:41 -05:00
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|