aboutsummaryrefslogtreecommitdiff
path: root/less/button-groups.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-13 10:24:18 -0700
committerMark Otto <[email protected]>2013-08-13 10:24:18 -0700
commit69a3e9b4d07cdaa281525c067f11ea83e1863f1b (patch)
tree5a784335befb78591350bdc2fd17c55cba583a3b /less/button-groups.less
parentf15f259876d77004fadf5b5937af5ab6b5eabb8e (diff)
downloadbootstrap-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.less33
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);
}