diff options
author | Mark Otto <otto@github.com> | 2013-05-04 03:16:26 +0400 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2013-05-04 03:16:26 +0400 |
commit | 7d41a387693c49347e06572ceb7ec2207ee30d46 (patch) | |
tree | 12d3566c657efb04d4cd4021367f8aa61fd6fa35 /less | |
parent | ee0789ff8f7ac0c60d8f326894fef5fd9db90adc (diff) |
Fixes #7511: add support for nested button groups so you can use dropdowns in your button groups
Diffstat (limited to 'less')
-rw-r--r-- | less/button-groups.less | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/less/button-groups.less b/less/button-groups.less index 884b0b272a..3a72d90bfc 100644 --- a/less/button-groups.less +++ b/less/button-groups.less @@ -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 { |