aboutsummaryrefslogtreecommitdiff
path: root/less/button-groups.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-13 09:59:38 -0700
committerMark Otto <[email protected]>2013-08-13 09:59:38 -0700
commitf15f259876d77004fadf5b5937af5ab6b5eabb8e (patch)
tree8243ade5366e9909a9a2a029b1d8ed125418955c /less/button-groups.less
parent36c4223b1d316c391e62741d10ad16bcf58ee36a (diff)
downloadbootstrap-f15f259876d77004fadf5b5937af5ab6b5eabb8e.tar.xz
bootstrap-f15f259876d77004fadf5b5937af5ab6b5eabb8e.zip
derp
Diffstat (limited to 'less/button-groups.less')
-rw-r--r--less/button-groups.less43
1 files changed, 35 insertions, 8 deletions
diff --git a/less/button-groups.less b/less/button-groups.less
index 28cb90fc1..0ca9ca851 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -55,11 +55,13 @@
}
// Prevent double borders when buttons are next to each other
-.btn-group .btn + .btn,
-.btn-group .btn + .btn-group,
-.btn-group .btn-group + .btn,
-.btn-group .btn-group + .btn-group {
- margin-left: -1px;
+.btn-group {
+ .btn + .btn,
+ .btn + .btn-group,
+ .btn-group + .btn,
+ .btn-group + .btn-group {
+ margin-left: -1px;
+ }
}
// Optional: Group multiple button groups together for a toolbar
@@ -166,26 +168,51 @@
// Vertical button groups
// ----------------------
-.btn-group-vertical > .btn {
+.btn-group-vertical > .btn,
+.btn-group-vertical > .btn-group {
display: block;
float: none;
width: 100%;
max-width: 100%;
- + .btn {
+}
+.btn-group-vertical {
+ .btn + .btn,
+ .btn + .btn-group,
+ .btn-group + .btn,
+ .btn-group + .btn-group {
margin-top: -1px;
+ margin-left: 0;
}
}
-.btn-group-vertical .btn {
+
+.btn-group-vertical > .btn {
&:not(:first-child):not(:last-child) {
border-radius: 0;
}
&:first-child:not(:last-child) {
+ border-top-right-radius: @border-radius-base;
.border-bottom-radius(0);
}
&:last-child:not(:first-child) {
+ border-bottom-left-radius: @border-radius-base;
.border-top-radius(0);
}
}
+.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
+ border-radius: 0;
+}
+.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);
+}
+
// Justified button groups