ffffng/app/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_badges.scss

69 lines
1.2 KiB
SCSS
Raw Permalink Normal View History

2014-05-12 20:08:19 +02:00
//
// Badges
// --------------------------------------------------
// Base class
.badge {
display: inline-block;
min-width: 10px;
padding: 3px 7px;
font-size: $font-size-small;
font-weight: $badge-font-weight;
line-height: $badge-line-height;
2019-03-29 22:00:08 +01:00
color: $badge-color;
2014-05-12 20:08:19 +02:00
text-align: center;
2019-03-29 22:00:08 +01:00
white-space: nowrap;
vertical-align: middle;
2014-05-12 20:08:19 +02:00
background-color: $badge-bg;
border-radius: $badge-border-radius;
// Empty badges collapse automatically (not available in IE8)
&:empty {
display: none;
}
// Quick fix for badges in buttons
.btn & {
position: relative;
top: -1px;
}
2016-05-16 13:33:49 +02:00
.btn-xs &,
.btn-group-xs > .btn & {
2014-05-12 20:08:19 +02:00
top: 0;
padding: 1px 5px;
}
// [converter] extracted a& to a.badge
// Account for badges in navs
2016-05-16 13:33:49 +02:00
.list-group-item.active > &,
2014-05-12 20:08:19 +02:00
.nav-pills > .active > a > & {
color: $badge-active-color;
background-color: $badge-active-bg;
}
2016-05-16 13:33:49 +02:00
.list-group-item > & {
float: right;
}
.list-group-item > & + & {
margin-right: 5px;
}
2014-05-12 20:08:19 +02:00
.nav-pills > li > a > & {
margin-left: 3px;
}
}
// Hover state, but only for links
a.badge {
&:hover,
&:focus {
color: $badge-link-hover-color;
text-decoration: none;
cursor: pointer;
}
}