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