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