aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2013-12-03 18:03:04 -0800
committerChris Rebert <[email protected]>2013-12-03 18:03:04 -0800
commit4a45650026a16d372feb1f150899e883d410a35e (patch)
treea40ef2d693bd375cfb18fa5839361489f6102160 /less
parentbac153127c4fc9a8f7d511b1424f73f089b1cbb6 (diff)
downloadbootstrap-4a45650026a16d372feb1f150899e883d410a35e.tar.xz
bootstrap-4a45650026a16d372feb1f150899e883d410a35e.zip
fix .btn-group-xs portion of #10979
Diffstat (limited to 'less')
-rw-r--r--less/buttons.less5
-rw-r--r--less/variables.less3
2 files changed, 5 insertions, 3 deletions
diff --git a/less/buttons.less b/less/buttons.less
index ee6f6612a..0a484ead2 100644
--- a/less/buttons.less
+++ b/less/buttons.less
@@ -122,13 +122,12 @@
// line-height: ensure even-numbered height of button next to large input
.button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
}
-.btn-sm,
-.btn-xs {
+.btn-sm {
// line-height: ensure proper height of button next to small input
.button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
}
.btn-xs {
- padding: 1px 5px;
+ .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
}
diff --git a/less/variables.less b/less/variables.less
index 120a65e06..1775be080 100644
--- a/less/variables.less
+++ b/less/variables.less
@@ -84,6 +84,9 @@
@padding-small-vertical: 5px;
@padding-small-horizontal: 10px;
+@padding-xs-vertical: 1px;
+@padding-xs-horizontal: 5px;
+
@line-height-large: 1.33;
@line-height-small: 1.5;