aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-05 15:30:28 -0700
committerMark Otto <[email protected]>2013-08-05 15:30:28 -0700
commitc4281f39190b99ed543b046430e32ff488092ecd (patch)
tree5eab86ca1606061950675c2c01ad928c95a31899 /less
parent844df9e0011c0dff5900bcbed3f1146564c0103c (diff)
downloadbootstrap-c4281f39190b99ed543b046430e32ff488092ecd.tar.xz
bootstrap-c4281f39190b99ed543b046430e32ff488092ecd.zip
Update labels to include a base class
* Builds on the new button styles by requiring a `.btn-default` for the regular, gray labels * Updates components examples to show new stuff
Diffstat (limited to 'less')
-rw-r--r--less/labels.less6
-rw-r--r--less/variables.less2
2 files changed, 7 insertions, 1 deletions
diff --git a/less/labels.less b/less/labels.less
index 7e7ea169f..c7c719c03 100644
--- a/less/labels.less
+++ b/less/labels.less
@@ -12,7 +12,6 @@
text-align: center;
white-space: nowrap;
vertical-align: baseline;
- background-color: @gray-light;
border-radius: .25em;
// Add hover effects, but only for links
@@ -29,6 +28,11 @@
// Colors
// Contextual variations (linked labels get darker on :hover)
+
+.label-default {
+ .label-variant(@label-default-bg);
+}
+
.label-danger {
.label-variant(@label-danger-bg);
}
diff --git a/less/variables.less b/less/variables.less
index 48c6d88b2..b3743755c 100644
--- a/less/variables.less
+++ b/less/variables.less
@@ -375,6 +375,8 @@
// Labels
// -------------------------
+
+@label-default-bg: @gray-light;
@label-success-bg: @brand-success;
@label-info-bg: @brand-info;
@label-warning-bg: @brand-warning;