0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
Bootstrap/less/labels.less

55 lines
930 B
Plaintext
Raw Normal View History

//
// Labels
// --------------------------------------------------
.label {
2013-04-19 21:31:55 +02:00
display: inline;
padding: .25em .6em;
font-size: 75%;
font-weight: 500;
line-height: 1;
color: @label-color;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
2013-07-02 02:32:07 +02:00
// Add hover effects, but only for links
&[href] {
2013-04-19 21:31:55 +02:00
&:hover,
&:focus {
color: @label-link-hover-color;
2013-04-19 21:31:55 +02:00
text-decoration: none;
cursor: pointer;
}
}
// Empty labels collapse automatically (not available in IE8)
&:empty {
display: none;
}
2013-04-19 21:31:55 +02:00
}
// Colors
// Contextual variations (linked labels get darker on :hover)
.label-default {
.label-variant(@label-default-bg);
}
2013-04-19 21:31:55 +02:00
.label-danger {
2013-07-07 23:26:51 +02:00
.label-variant(@label-danger-bg);
2013-04-19 21:31:55 +02:00
}
.label-success {
2013-07-07 23:26:51 +02:00
.label-variant(@label-success-bg);
2013-04-19 21:31:55 +02:00
}
.label-warning {
2013-07-07 23:26:51 +02:00
.label-variant(@label-warning-bg);
}
2013-04-19 21:31:55 +02:00
.label-info {
2013-07-07 23:26:51 +02:00
.label-variant(@label-info-bg);
2013-07-02 02:32:07 +02:00
}