63 lines
1.2 KiB
Plaintext
63 lines
1.2 KiB
Plaintext
// Badges
|
|
|
|
.badge {
|
|
display: inline-block;
|
|
min-width: var(--10px);
|
|
padding: var(--3px) var(--7px);
|
|
font-size: var(--font-size-small);
|
|
font-weight: 600;
|
|
color: var(--white-color);
|
|
line-height: 1;
|
|
vertical-align: middle;
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
background-color: var(--gray-light);
|
|
border-radius: var(--badge-border-radius-value);
|
|
|
|
// Empty badges collapse automatically (not available in IE8)
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
|
|
// Quick fix for badges in buttons
|
|
.btn & {
|
|
position: relative;
|
|
top: var(--minus-1px);
|
|
}
|
|
|
|
.btn-xs &,
|
|
.btn-group-xs > .btn & {
|
|
top: 0;
|
|
padding: var(--1px) var(--5px);
|
|
}
|
|
|
|
// Hover state, but only for links
|
|
a& {
|
|
&:hover,
|
|
&:focus {
|
|
color: var(--white-color);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
// Account for badges in navs
|
|
.list-group-item.active > &,
|
|
.nav-pills > .active > a > & {
|
|
color: var(--link-color);
|
|
background-color: var(--white-color);
|
|
}
|
|
|
|
.list-group-item > & {
|
|
float: right;
|
|
}
|
|
|
|
.list-group-item > & + & {
|
|
margin-right: var(--5px);
|
|
}
|
|
|
|
.nav-pills > li > a > & {
|
|
margin-left: var(--3px);
|
|
}
|
|
}
|