aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-08-18 16:50:26 -0700
committerMark Otto <[email protected]>2012-08-18 16:50:26 -0700
commite6e0e2ac9b0a31979531b6add3d1c8aaceb65f2e (patch)
tree38ada601028197e832bf289d9c973881b510b5ec /less
parent4d2f584fdd921a9b463355513a0beba5052a199b (diff)
downloadbootstrap-e6e0e2ac9b0a31979531b6add3d1c8aaceb65f2e.tar.xz
bootstrap-e6e0e2ac9b0a31979531b6add3d1c8aaceb65f2e.zip
fixes #4442: allow for .btn within a .btn-toolbar without .btn-group
Diffstat (limited to 'less')
-rw-r--r--less/button-groups.less5
1 files changed, 5 insertions, 0 deletions
diff --git a/less/button-groups.less b/less/button-groups.less
index cbb237a61..1cc758b7f 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -18,12 +18,17 @@
// Optional: Group multiple button groups together for a toolbar
.btn-toolbar {
+ font-size: 0; // Hack to remove whitespace that results from using inline-block
margin-top: @baseLineHeight / 2;
margin-bottom: @baseLineHeight / 2;
.btn-group {
display: inline-block;
.ie7-inline-block();
}
+ .btn-group + .btn,
+ .btn + .btn-group {
+ margin-left: 5px;
+ }
}
// Float them, remove border radius, then re-add to first and last elements