0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

Merge pull request #8405 from cvrebert/button-groups-nesting

more nesting in button-groups.less
This commit is contained in:
Mark Otto 2013-07-07 18:25:48 -07:00
commit 03becfb9e3

View File

@ -72,10 +72,12 @@
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
.btn-group > .btn-group:first-child > .btn:last-child,
.btn-group > .btn-group:first-child > .dropdown-toggle {
.btn-group > .btn-group:first-child {
> .btn:last-child,
> .dropdown-toggle {
.border-right-radius(0);
}
}
.btn-group > .btn-group:last-child > .btn:first-child {
.border-left-radius(0);
}
@ -134,15 +136,17 @@
margin-top: -1px;
}
}
.btn-group-vertical .btn:not(:first-child):not(:last-child) {
.btn-group-vertical .btn {
&:not(:first-child):not(:last-child) {
border-radius: 0;
}
.btn-group-vertical .btn:first-child {
&:first-child {
.border-bottom-radius(0);
}
.btn-group-vertical .btn:last-child {
&:last-child {
.border-top-radius(0);
}
}
// Justified button groups