2020-05-19 16:53:54 +00:00
|
|
|
// Base class
|
|
|
|
//
|
|
|
|
// Requires one of the contextual, color modifier classes for `color` and
|
|
|
|
// `background-color`.
|
|
|
|
|
|
|
|
.badge {
|
|
|
|
display: inline-block;
|
|
|
|
padding: $badge-padding-y $badge-padding-x;
|
|
|
|
@include font-size($badge-font-size);
|
|
|
|
font-weight: $badge-font-weight;
|
|
|
|
line-height: 1;
|
2021-07-07 11:12:38 +00:00
|
|
|
color: $badge-color;
|
2020-05-19 16:53:54 +00:00
|
|
|
text-align: center;
|
|
|
|
white-space: nowrap;
|
|
|
|
vertical-align: baseline;
|
|
|
|
@include border-radius($badge-border-radius);
|
2021-07-07 11:12:38 +00:00
|
|
|
@include gradient-bg();
|
2020-05-19 16:53:54 +00:00
|
|
|
|
|
|
|
// Empty badges collapse automatically
|
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Quick fix for badges in buttons
|
|
|
|
.btn .badge {
|
|
|
|
position: relative;
|
|
|
|
top: -1px;
|
|
|
|
}
|