twbs--bootstrap/less/labels.less

47 lines
855 B
Plaintext
Raw Normal View History

//
// Labels
// --------------------------------------------------
.label {
2013-04-19 19:31:55 +00: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;
background-color: @gray-light;
border-radius: .25em;
2013-07-02 00:32:07 +00:00
// Add hover effects, but only for links
&[href] {
2013-04-19 19:31:55 +00:00
&:hover,
&:focus {
color: @label-link-hover-color;
2013-04-19 19:31:55 +00:00
text-decoration: none;
cursor: pointer;
background-color: darken(@gray-light, 10%);
2013-04-19 19:31:55 +00:00
}
}
}
// Colors
// Contextual variations (linked labels get darker on :hover)
2013-04-19 19:31:55 +00:00
.label-danger {
2013-07-07 21:26:51 +00:00
.label-variant(@label-danger-bg);
2013-04-19 19:31:55 +00:00
}
.label-success {
2013-07-07 21:26:51 +00:00
.label-variant(@label-success-bg);
2013-04-19 19:31:55 +00:00
}
.label-warning {
2013-07-07 21:26:51 +00:00
.label-variant(@label-warning-bg);
}
2013-04-19 19:31:55 +00:00
.label-info {
2013-07-07 21:26:51 +00:00
.label-variant(@label-info-bg);
2013-07-02 00:32:07 +00:00
}