2013-02-18 01:20:49 -05:00
|
|
|
//
|
|
|
|
// Labels
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2013-04-22 09:34:23 -04:00
|
|
|
.label {
|
2013-04-19 15:31:55 -04:00
|
|
|
display: inline;
|
2013-02-18 01:20:49 -05:00
|
|
|
padding: .25em .6em;
|
|
|
|
font-size: 75%;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #fff;
|
|
|
|
line-height: 1;
|
|
|
|
vertical-align: middle;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-align: center;
|
2013-04-21 22:35:36 -04:00
|
|
|
background-color: @gray-light;
|
2013-02-18 01:20:49 -05:00
|
|
|
border-radius: .25em;
|
|
|
|
|
2013-04-22 09:34:23 -04:00
|
|
|
// Nuke the hover effects for a.label and for label[href] - for anchors
|
|
|
|
&[href], a& {
|
2013-04-19 15:31:55 -04:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: #fff;
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-22 09:34:23 -04:00
|
|
|
// Colors
|
|
|
|
// Varying the background-color - if the a has href, then deploy darker color
|
2013-04-19 15:31:55 -04:00
|
|
|
.label-danger {
|
2013-04-22 09:34:23 -04:00
|
|
|
background-color: @label-danger-bg;
|
|
|
|
&[href] {
|
|
|
|
background-color: darken(@label-danger-bg, 10%);
|
|
|
|
}
|
2013-04-19 15:31:55 -04:00
|
|
|
}
|
|
|
|
|
2013-04-22 09:34:23 -04:00
|
|
|
.label-success {
|
|
|
|
background-color: @label-success-bg;
|
|
|
|
&[href] {
|
|
|
|
background-color: darken(@label-success-bg, 10%);
|
|
|
|
}
|
2013-04-19 15:31:55 -04:00
|
|
|
}
|
|
|
|
|
2013-04-22 09:34:23 -04:00
|
|
|
.label-warning {
|
|
|
|
background-color: @label-warning-bg;
|
|
|
|
&[href] {
|
|
|
|
background-color: darken(@label-warning-bg, 10%);
|
|
|
|
}
|
2013-02-18 01:20:49 -05:00
|
|
|
}
|
|
|
|
|
2013-04-19 15:31:55 -04:00
|
|
|
.label-info {
|
2013-04-22 09:34:23 -04:00
|
|
|
background-color: @label-info-bg;
|
|
|
|
&[href] {
|
|
|
|
background-color: darken(@label-info-bg, 10%);
|
|
|
|
}
|
|
|
|
}
|