2013-02-18 14:20:49 +08:00
|
|
|
//
|
|
|
|
|
// Labels
|
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
2013-04-22 21:34:23 +08:00
|
|
|
.label {
|
2014-12-06 16:33:36 +08:00
|
|
|
display: inline-block;
|
|
|
|
|
padding: .25em .4em;
|
2013-02-18 14:20:49 +08:00
|
|
|
font-size: 75%;
|
2013-08-12 09:10:42 +08:00
|
|
|
font-weight: bold;
|
2013-02-18 14:20:49 +08:00
|
|
|
line-height: 1;
|
2014-12-03 06:02:35 +08:00
|
|
|
color: $label-color;
|
2013-02-18 14:20:49 +08:00
|
|
|
text-align: center;
|
2013-04-24 19:54:17 +08:00
|
|
|
white-space: nowrap;
|
2013-07-30 23:23:25 +08:00
|
|
|
vertical-align: baseline;
|
2014-12-03 06:02:35 +08:00
|
|
|
@include border-radius();
|
2013-08-12 03:43:43 +08:00
|
|
|
|
2014-07-09 10:20:45 +08:00
|
|
|
// Empty labels collapse automatically
|
2013-08-12 03:43:43 +08:00
|
|
|
&:empty {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
2013-10-24 04:14:34 +08:00
|
|
|
|
|
|
|
|
// Quick fix for labels in buttons
|
|
|
|
|
.btn & {
|
|
|
|
|
position: relative;
|
|
|
|
|
top: -1px;
|
|
|
|
|
}
|
2013-04-20 03:31:55 +08:00
|
|
|
}
|
|
|
|
|
|
2014-12-03 06:02:35 +08:00
|
|
|
// Add hover effects, but only for links
|
|
|
|
|
a.label {
|
2015-01-01 17:05:01 +08:00
|
|
|
@include hover-focus {
|
2014-12-03 06:02:35 +08:00
|
|
|
color: $label-link-hover-color;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-04-22 21:34:23 +08:00
|
|
|
// Colors
|
2013-04-24 19:54:17 +08:00
|
|
|
// Contextual variations (linked labels get darker on :hover)
|
2013-08-06 06:30:28 +08:00
|
|
|
|
|
|
|
|
.label-default {
|
2014-12-03 06:02:35 +08:00
|
|
|
@include label-variant($label-default-bg);
|
2013-08-06 06:30:28 +08:00
|
|
|
}
|
|
|
|
|
|
2013-08-16 02:31:26 +08:00
|
|
|
.label-primary {
|
2014-12-03 06:02:35 +08:00
|
|
|
@include label-variant($label-primary-bg);
|
2013-04-20 03:31:55 +08:00
|
|
|
}
|
|
|
|
|
|
2013-04-22 21:34:23 +08:00
|
|
|
.label-success {
|
2014-12-03 06:02:35 +08:00
|
|
|
@include label-variant($label-success-bg);
|
2013-04-20 03:31:55 +08:00
|
|
|
}
|
|
|
|
|
|
2013-08-16 02:31:26 +08:00
|
|
|
.label-info {
|
2014-12-03 06:02:35 +08:00
|
|
|
@include label-variant($label-info-bg);
|
2013-08-16 02:31:26 +08:00
|
|
|
}
|
|
|
|
|
|
2013-04-22 21:34:23 +08:00
|
|
|
.label-warning {
|
2014-12-03 06:02:35 +08:00
|
|
|
@include label-variant($label-warning-bg);
|
2013-02-18 14:20:49 +08:00
|
|
|
}
|
|
|
|
|
|
2013-08-16 02:31:26 +08:00
|
|
|
.label-danger {
|
2014-12-03 06:02:35 +08:00
|
|
|
@include label-variant($label-danger-bg);
|
2013-07-02 08:32:07 +08:00
|
|
|
}
|