2013-02-18 07:20:49 +01:00
|
|
|
//
|
|
|
|
// Labels
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2013-04-22 15:34:23 +02:00
|
|
|
.label {
|
2013-04-19 21:31:55 +02:00
|
|
|
display: inline;
|
2013-02-18 07:20:49 +01: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-22 04:35:36 +02:00
|
|
|
background-color: @gray-light;
|
2013-02-18 07:20:49 +01:00
|
|
|
border-radius: .25em;
|
|
|
|
|
2013-04-22 15:34:23 +02:00
|
|
|
// Nuke the hover effects for a.label and for label[href] - for anchors
|
|
|
|
&[href], a& {
|
2013-04-19 21:31:55 +02:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: #fff;
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-22 15:34:23 +02:00
|
|
|
// Colors
|
|
|
|
// Varying the background-color - if the a has href, then deploy darker color
|
2013-04-19 21:31:55 +02:00
|
|
|
.label-danger {
|
2013-04-22 15:34:23 +02:00
|
|
|
background-color: @label-danger-bg;
|
|
|
|
&[href] {
|
|
|
|
background-color: darken(@label-danger-bg, 10%);
|
|
|
|
}
|
2013-04-19 21:31:55 +02:00
|
|
|
}
|
|
|
|
|
2013-04-22 15:34:23 +02:00
|
|
|
.label-success {
|
|
|
|
background-color: @label-success-bg;
|
|
|
|
&[href] {
|
|
|
|
background-color: darken(@label-success-bg, 10%);
|
|
|
|
}
|
2013-04-19 21:31:55 +02:00
|
|
|
}
|
|
|
|
|
2013-04-22 15:34:23 +02:00
|
|
|
.label-warning {
|
|
|
|
background-color: @label-warning-bg;
|
|
|
|
&[href] {
|
|
|
|
background-color: darken(@label-warning-bg, 10%);
|
|
|
|
}
|
2013-02-18 07:20:49 +01:00
|
|
|
}
|
|
|
|
|
2013-04-19 21:31:55 +02:00
|
|
|
.label-info {
|
2013-04-22 15:34:23 +02:00
|
|
|
background-color: @label-info-bg;
|
|
|
|
&[href] {
|
|
|
|
background-color: darken(@label-info-bg, 10%);
|
|
|
|
}
|
|
|
|
}
|