aboutsummaryrefslogtreecommitdiff
path: root/less/button-groups.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-12-15 15:07:38 -0800
committerMark Otto <[email protected]>2013-12-15 15:07:38 -0800
commitd1f15baa713764440e8335b8dbab580887caaa12 (patch)
tree22795d45cb61184ae349c66e47352051a2f7ec0b /less/button-groups.less
parent3b5e0c9a3cae9bfae38253ae153a3426d1f81ad3 (diff)
parentb04a1de9b097de7f4df95b30df040efe86563e75 (diff)
downloadbootstrap-d1f15baa713764440e8335b8dbab580887caaa12.tar.xz
bootstrap-d1f15baa713764440e8335b8dbab580887caaa12.zip
Merge branch 'master' into pr/11817
Conflicts: dist/css/bootstrap.min.css less/input-groups.less
Diffstat (limited to 'less/button-groups.less')
-rw-r--r--less/button-groups.less17
1 files changed, 8 insertions, 9 deletions
diff --git a/less/button-groups.less b/less/button-groups.less
index ef9c34e77..58fd90675 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -37,18 +37,17 @@
// Optional: Group multiple button groups together for a toolbar
.btn-toolbar {
+ margin-left: -5px; // Offset the first child's margin
&:extend(.clearfix all);
- .btn-group {
+ .btn-group,
+ .input-group {
float: left;
}
- // Space out series of button groups
> .btn,
- > .btn-group {
- + .btn,
- + .btn-group {
- margin-left: 5px;
- }
+ > .btn-group,
+ > .input-group {
+ margin-left: 5px;
}
}
@@ -188,13 +187,13 @@
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
-.btn-group-vertical > .btn-group:first-child {
+.btn-group-vertical > .btn-group:first-child:not(:last-child) {
> .btn:last-child,
> .dropdown-toggle {
.border-bottom-radius(0);
}
}
-.btn-group-vertical > .btn-group:last-child > .btn:first-child {
+.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
.border-top-radius(0);
}