Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <otto@github.com>2012-11-28 14:21:34 +0400
committerMark Otto <otto@github.com>2012-11-28 14:21:34 +0400
commit8fb36cb3dd60c34afdbb8e46cc457b2e8795b3c5 (patch)
treebc6da2480b89c6be2052db6d45ef8866289a5d40 /less
parent296b8384050746b11c02bde2e68954981c3ec5fe (diff)
Fixes #5594: Vertical button groups show use max-width, not width, and be scoped to immediate children buttons only
Diffstat (limited to 'less')
-rw-r--r--less/button-groups.less14
1 files changed, 7 insertions, 7 deletions
diff --git a/less/button-groups.less b/less/button-groups.less
index c830852b2b..d6054c8085 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -203,25 +203,25 @@
display: inline-block; // makes buttons only take up the width they need
.ie7-inline-block();
}
-.btn-group-vertical .btn {
+.btn-group-vertical > .btn {
display: block;
float: none;
- width: 100%;
+ max-width: 100%;
.border-radius(0);
}
-.btn-group-vertical .btn + .btn {
+.btn-group-vertical > .btn + .btn {
margin-left: 0;
margin-top: -1px;
}
-.btn-group-vertical .btn:first-child {
+.btn-group-vertical > .btn:first-child {
.border-radius(@baseBorderRadius @baseBorderRadius 0 0);
}
-.btn-group-vertical .btn:last-child {
+.btn-group-vertical > .btn:last-child {
.border-radius(0 0 @baseBorderRadius @baseBorderRadius);
}
-.btn-group-vertical .btn-large:first-child {
+.btn-group-vertical > .btn-large:first-child {
.border-radius(@borderRadiusLarge @borderRadiusLarge 0 0);
}
-.btn-group-vertical .btn-large:last-child {
+.btn-group-vertical > .btn-large:last-child {
.border-radius(0 0 @borderRadiusLarge @borderRadiusLarge);
}