aboutsummaryrefslogtreecommitdiff
path: root/less/button-groups.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-08-19 17:07:41 -0700
committerMark Otto <[email protected]>2012-08-19 17:07:41 -0700
commitb745b7768a837a38ca47f174c62b8689e18e2733 (patch)
treecab599ef8aa000751bd85c79ada377f4a37789e6 /less/button-groups.less
parent887f11d47f052a0dd123f76a6ac39a955c2429d4 (diff)
downloadbootstrap-b745b7768a837a38ca47f174c62b8689e18e2733.tar.xz
bootstrap-b745b7768a837a38ca47f174c62b8689e18e2733.zip
fixes #4458: improve support for .btn + .btn in .btn-groups and .btn-toolbars
Diffstat (limited to 'less/button-groups.less')
-rw-r--r--less/button-groups.less7
1 files changed, 5 insertions, 2 deletions
diff --git a/less/button-groups.less b/less/button-groups.less
index 1cc758b7f..3197cb394 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -25,6 +25,7 @@
display: inline-block;
.ie7-inline-block();
}
+ .btn + .btn,
.btn-group + .btn,
.btn + .btn-group {
margin-left: 5px;
@@ -34,9 +35,11 @@
// Float them, remove border radius, then re-add to first and last elements
.btn-group > .btn {
position: relative;
- margin-left: -1px;
.border-radius(0);
}
+.btn-group > .btn + .btn {
+ margin-left: -1px;
+}
.btn-group > .btn,
.btn-group > .dropdown-menu {
font-size: @baseFontSize; // redeclare as part 2 of font-size inline-block hack
@@ -215,11 +218,11 @@
.btn-group-vertical .btn {
display: block;
float: none;
- margin-left: 0;
width: 100%;
.border-radius(0);
}
.btn-group-vertical .btn + .btn {
+ margin-left: 0;
margin-top: -1px;
}
.btn-group-vertical .btn:first-child {