2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03:00

Fixes #7511: add support for nested button groups so you can use dropdowns in your button groups

This commit is contained in:
Mark Otto
2013-05-03 16:16:26 -07:00
parent ee0789ff8f
commit 7d41a38769
3 changed files with 56 additions and 0 deletions
+15
View File
@@ -73,6 +73,21 @@
.border-right-radius(@border-radius-large);
}
// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
.btn-group > .btn-group {
float: left;
}
.btn-group > .btn-group > .btn {
border-radius: 0;
}
.btn-group > .btn-group:last-child > .btn {
.border-right-radius(@border-radius-base);
}
.btn-group > .btn-group:first-child > .btn {
margin-left: 0;
.border-left-radius(@border-radius-base);
}
// On active and open, don't show outline
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {