mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
86af1f39ab
Conflicts: Gruntfile.js _config.yml dist/css/bootstrap-theme.css dist/css/bootstrap-theme.css.map dist/css/bootstrap-theme.min.css dist/css/bootstrap.css dist/css/bootstrap.css.map dist/css/bootstrap.min.css docs/_includes/components/button-groups.html docs/_includes/components/jumbotron.html docs/_includes/components/media.html docs/_includes/components/navs.html docs/_includes/customizer-variables.html docs/_includes/footer.html docs/_includes/getting-started/browser-device-support.html docs/_includes/js/carousel.html docs/_includes/js/dropdowns.html docs/_includes/js/modal.html docs/_includes/js/popovers.html docs/_includes/js/tooltips.html docs/_includes/nav/getting-started.html docs/_includes/nav/javascript.html docs/_layouts/default.html docs/assets/css/docs.min.css docs/assets/css/src/docs.css docs/assets/js/customize.min.js docs/assets/js/docs.min.js docs/assets/js/raw-files.min.js docs/browser-bugs.html docs/dist/css/bootstrap-theme.css docs/dist/css/bootstrap-theme.css.map docs/dist/css/bootstrap-theme.min.css docs/dist/css/bootstrap.css docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css docs/examples/justified-nav/index.html less/_forms.less less/_tooltip.less less/navs.less less/theme.less
57 lines
1.0 KiB
Plaintext
57 lines
1.0 KiB
Plaintext
//
|
|
// Badges
|
|
// --------------------------------------------------
|
|
|
|
|
|
// Base class
|
|
.badge {
|
|
position: relative;
|
|
top: -.1em;
|
|
display: inline-block;
|
|
padding-left: .6em;
|
|
padding-right: .6em;
|
|
font-size: .75em;
|
|
font-weight: @badge-font-weight;
|
|
color: @badge-color;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
background-color: @badge-bg;
|
|
.border-radius(@badge-border-radius);
|
|
|
|
// Empty badges collapse automatically
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
|
|
&.pull-left,
|
|
&.pull-right {
|
|
top: .2em;
|
|
}
|
|
|
|
// Hover state, but only for links
|
|
a& {
|
|
&:hover,
|
|
&:focus {
|
|
color: @badge-link-hover-color;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
// Account for badges in navs
|
|
.list-group-item.active > &,
|
|
.nav-pills > .active > a > & {
|
|
color: @badge-active-color;
|
|
background-color: @badge-active-bg;
|
|
}
|
|
.list-group-item > & {
|
|
float: right;
|
|
}
|
|
.list-group-item > & + & {
|
|
margin-right: 5px;
|
|
}
|
|
.nav-pills > li > a > & {
|
|
margin-left: 3px;
|
|
}
|
|
}
|