author | stetrabby <info@trabucchi.de> |
Fri, 20 Dec 2013 22:30:44 +0100 | |
changeset 53 | 3416f82943ea |
permissions | -rwxr-xr-x |
info@53 | 1 |
// |
info@53 | 2 |
// Labels |
info@53 | 3 |
// -------------------------------------------------- |
info@53 | 4 |
|
info@53 | 5 |
.label { |
info@53 | 6 |
display: inline; |
info@53 | 7 |
padding: .2em .6em .3em; |
info@53 | 8 |
font-size: 75%; |
info@53 | 9 |
font-weight: bold; |
info@53 | 10 |
line-height: 1; |
info@53 | 11 |
color: @label-color; |
info@53 | 12 |
text-align: center; |
info@53 | 13 |
white-space: nowrap; |
info@53 | 14 |
vertical-align: baseline; |
info@53 | 15 |
border-radius: .25em; |
info@53 | 16 |
|
info@53 | 17 |
// Add hover effects, but only for links |
info@53 | 18 |
&[href] { |
info@53 | 19 |
&:hover, |
info@53 | 20 |
&:focus { |
info@53 | 21 |
color: @label-link-hover-color; |
info@53 | 22 |
text-decoration: none; |
info@53 | 23 |
cursor: pointer; |
info@53 | 24 |
} |
info@53 | 25 |
} |
info@53 | 26 |
|
info@53 | 27 |
// Empty labels collapse automatically (not available in IE8) |
info@53 | 28 |
&:empty { |
info@53 | 29 |
display: none; |
info@53 | 30 |
} |
info@53 | 31 |
|
info@53 | 32 |
// Quick fix for labels in buttons |
info@53 | 33 |
.btn & { |
info@53 | 34 |
position: relative; |
info@53 | 35 |
top: -1px; |
info@53 | 36 |
} |
info@53 | 37 |
} |
info@53 | 38 |
|
info@53 | 39 |
// Colors |
info@53 | 40 |
// Contextual variations (linked labels get darker on :hover) |
info@53 | 41 |
|
info@53 | 42 |
.label-default { |
info@53 | 43 |
.label-variant(@label-default-bg); |
info@53 | 44 |
} |
info@53 | 45 |
|
info@53 | 46 |
.label-primary { |
info@53 | 47 |
.label-variant(@label-primary-bg); |
info@53 | 48 |
} |
info@53 | 49 |
|
info@53 | 50 |
.label-success { |
info@53 | 51 |
.label-variant(@label-success-bg); |
info@53 | 52 |
} |
info@53 | 53 |
|
info@53 | 54 |
.label-info { |
info@53 | 55 |
.label-variant(@label-info-bg); |
info@53 | 56 |
} |
info@53 | 57 |
|
info@53 | 58 |
.label-warning { |
info@53 | 59 |
.label-variant(@label-warning-bg); |
info@53 | 60 |
} |
info@53 | 61 |
|
info@53 | 62 |
.label-danger { |
info@53 | 63 |
.label-variant(@label-danger-bg); |
info@53 | 64 |
} |