2012-06-28 21:46:45 -07:00
|
|
|
//
|
2013-02-17 21:06:20 -08:00
|
|
|
// Badges
|
2012-06-28 21:46:45 -07:00
|
|
|
// --------------------------------------------------
|
|
|
|
|
2012-03-22 16:02:00 -07:00
|
|
|
|
|
|
|
// Base classes
|
2013-02-17 21:06:20 -08:00
|
|
|
.badge {
|
2012-10-01 12:04:10 -07:00
|
|
|
display: inline-block;
|
2013-01-19 18:53:41 -08:00
|
|
|
min-width: 10px;
|
|
|
|
padding: 3px 7px;
|
2013-04-24 00:41:06 +02:00
|
|
|
font-size: @font-size-small;
|
2013-07-28 17:32:08 +05:00
|
|
|
font-weight: @badge-font-weight;
|
2013-07-19 18:29:19 +05:00
|
|
|
color: @badge-color;
|
2013-07-28 17:32:08 +05:00
|
|
|
line-height: @badge-line-height;
|
2013-07-30 11:23:25 -04:00
|
|
|
vertical-align: baseline;
|
2012-03-22 16:02:00 -07:00
|
|
|
white-space: nowrap;
|
2013-01-19 18:53:41 -08:00
|
|
|
text-align: center;
|
2013-07-20 00:03:08 -07:00
|
|
|
background-color: @badge-bg;
|
2013-07-28 17:32:08 +05:00
|
|
|
border-radius: @badge-border-radius;
|
2012-03-22 16:02:00 -07:00
|
|
|
|
2013-08-11 12:43:43 -07:00
|
|
|
// Empty badges collapse automatically (not available in IE8)
|
2012-11-03 13:18:23 -07:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-03-22 16:02:00 -07:00
|
|
|
// Hover state, but only for links
|
2013-02-17 21:06:20 -08:00
|
|
|
a.badge {
|
2013-02-05 19:53:44 -08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2013-07-19 18:29:19 +05:00
|
|
|
color: @badge-link-hover-color;
|
2012-03-22 16:02:00 -07:00
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-30 13:25:27 -07:00
|
|
|
// Quick fix for labels/badges in buttons
|
2013-07-06 22:02:58 -07:00
|
|
|
.btn .badge {
|
|
|
|
position: relative;
|
|
|
|
top: -1px;
|
2012-07-30 13:25:27 -07:00
|
|
|
}
|
2013-01-19 18:53:41 -08:00
|
|
|
|
|
|
|
// Account for counters in navs
|
2013-03-30 16:56:49 -07:00
|
|
|
a.list-group-item.active > .badge,
|
2013-02-17 21:06:20 -08:00
|
|
|
.nav-pills > .active > a > .badge {
|
2013-07-20 00:03:08 -07:00
|
|
|
color: @badge-active-color;
|
2013-07-19 23:14:13 +05:00
|
|
|
background-color: @badge-active-bg;
|
2013-01-19 18:53:41 -08:00
|
|
|
}
|
2013-02-17 21:06:20 -08:00
|
|
|
.nav-pills > li > a > .badge {
|
2013-01-19 18:53:41 -08:00
|
|
|
margin-left: 3px;
|
|
|
|
}
|