diff options
| author | Mark Otto <[email protected]> | 2013-08-13 10:24:18 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-13 10:24:18 -0700 |
| commit | 69a3e9b4d07cdaa281525c067f11ea83e1863f1b (patch) | |
| tree | 5a784335befb78591350bdc2fd17c55cba583a3b /less/button-groups.less | |
| parent | f15f259876d77004fadf5b5937af5ab6b5eabb8e (diff) | |
| download | bootstrap-69a3e9b4d07cdaa281525c067f11ea83e1863f1b.tar.xz bootstrap-69a3e9b4d07cdaa281525c067f11ea83e1863f1b.zip | |
enable button groups in vertical button groups
Diffstat (limited to 'less/button-groups.less')
| -rw-r--r-- | less/button-groups.less | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/less/button-groups.less b/less/button-groups.less index 0ca9ca851..adaad3f80 100644 --- a/less/button-groups.less +++ b/less/button-groups.less @@ -168,18 +168,27 @@ // Vertical button groups // ---------------------- -.btn-group-vertical > .btn, -.btn-group-vertical > .btn-group { - display: block; - float: none; - width: 100%; - max-width: 100%; -} .btn-group-vertical { - .btn + .btn, - .btn + .btn-group, - .btn-group + .btn, - .btn-group + .btn-group { + > .btn, + > .btn-group { + display: block; + float: none; + width: 100%; + max-width: 100%; + } + + // Clear floats so dropdown menus can be properly placed + > .btn-group { + .clearfix(); + > .btn { + float: none; + } + } + + > .btn + .btn, + > .btn + .btn-group, + > .btn-group + .btn, + > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } @@ -204,12 +213,10 @@ .btn-group-vertical > .btn-group:first-child { > .btn:last-child, > .dropdown-toggle { - border-top-right-radius: @border-radius-base; .border-bottom-radius(0); } } .btn-group-vertical > .btn-group:last-child > .btn:first-child { - border-bottom-left-radius: @border-radius-base; .border-top-radius(0); } |
