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>2013-05-04 03:16:26 +0400
committerMark Otto <otto@github.com>2013-05-04 03:16:26 +0400
commit7d41a387693c49347e06572ceb7ec2207ee30d46 (patch)
tree12d3566c657efb04d4cd4021367f8aa61fd6fa35 /less
parentee0789ff8f7ac0c60d8f326894fef5fd9db90adc (diff)
Fixes #7511: add support for nested button groups so you can use dropdowns in your button groups
Diffstat (limited to 'less')
-rw-r--r--less/button-groups.less15
1 files changed, 15 insertions, 0 deletions
diff --git a/less/button-groups.less b/less/button-groups.less
index 884b0b272a..3a72d90bfc 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -73,6 +73,21 @@
.border-right-radius(@border-radius-large);
}
+// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
+.btn-group > .btn-group {
+ float: left;
+}
+.btn-group > .btn-group > .btn {
+ border-radius: 0;
+}
+.btn-group > .btn-group:last-child > .btn {
+ .border-right-radius(@border-radius-base);
+}
+.btn-group > .btn-group:first-child > .btn {
+ margin-left: 0;
+ .border-left-radius(@border-radius-base);
+}
+
// On active and open, don't show outline
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {