aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-02-06 15:12:14 -0800
committerChris Rebert <[email protected]>2014-02-06 15:12:14 -0800
commit651b289e269f8806e4e30854b99410dd7c9b3c38 (patch)
tree2f64bace84cb0633fd8154341ddb104ee4cfde85
parentef25676f6fd85d2b8eea68104cb3c824e80e614c (diff)
parent37c21a3ac7f86f5cac904a12af897b3051170d02 (diff)
downloadbootstrap-651b289e269f8806e4e30854b99410dd7c9b3c38.tar.xz
bootstrap-651b289e269f8806e4e30854b99410dd7c9b3c38.zip
Merge pull request #12613 from twbs/sized-btn-group-extend
use Less' extend feature in btn-group-lg etc.
-rw-r--r--dist/css/bootstrap.css27
-rw-r--r--less/button-groups.less6
2 files changed, 9 insertions, 24 deletions
diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css
index e64956029..329b4fa2e 100644
--- a/dist/css/bootstrap.css
+++ b/dist/css/bootstrap.css
@@ -2311,19 +2311,22 @@ fieldset[disabled] .btn-link:focus {
color: #999;
text-decoration: none;
}
-.btn-lg {
+.btn-lg,
+.btn-group-lg > .btn {
padding: 10px 16px;
font-size: 18px;
line-height: 1.33;
border-radius: 6px;
}
-.btn-sm {
+.btn-sm,
+.btn-group-sm > .btn {
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
-.btn-xs {
+.btn-xs,
+.btn-group-xs > .btn {
padding: 1px 5px;
font-size: 12px;
line-height: 1.5;
@@ -3196,24 +3199,6 @@ input[type="button"].btn-block {
.btn-group.open .dropdown-toggle {
outline: 0;
}
-.btn-group-xs > .btn {
- padding: 1px 5px;
- font-size: 12px;
- line-height: 1.5;
- border-radius: 3px;
-}
-.btn-group-sm > .btn {
- padding: 5px 10px;
- font-size: 12px;
- line-height: 1.5;
- border-radius: 3px;
-}
-.btn-group-lg > .btn {
- padding: 10px 16px;
- font-size: 18px;
- line-height: 1.33;
- border-radius: 6px;
-}
.btn-group > .btn + .dropdown-toggle {
padding-right: 8px;
padding-left: 8px;
diff --git a/less/button-groups.less b/less/button-groups.less
index 58fd90675..27eb796b8 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -96,9 +96,9 @@
//
// Remix the default button sizing classes into new ones for easier manipulation.
-.btn-group-xs > .btn { .btn-xs(); }
-.btn-group-sm > .btn { .btn-sm(); }
-.btn-group-lg > .btn { .btn-lg(); }
+.btn-group-xs > .btn { &:extend(.btn-xs); }
+.btn-group-sm > .btn { &:extend(.btn-sm); }
+.btn-group-lg > .btn { &:extend(.btn-lg); }
// Split button dropdowns