aboutsummaryrefslogtreecommitdiff
path: root/less/button-groups.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-11-30 00:13:30 -0800
committerMark Otto <[email protected]>2012-11-30 00:13:30 -0800
commitfca35c0dba060da14ccb29fc56dc37aa1de533c4 (patch)
tree04cc972e705bedb2910247bdcfb0c8ede3cee09a /less/button-groups.less
parent7e56e2265d67ae81ad8be52af4d56f189929207a (diff)
parentbca3ff4ed6f42701ceae1405f518c35ec8c623be (diff)
downloadbootstrap-fca35c0dba060da14ccb29fc56dc37aa1de533c4.tar.xz
bootstrap-fca35c0dba060da14ccb29fc56dc37aa1de533c4.zip
Merge branch '2.2.2-wip' into exploratory
Conflicts: docs/assets/css/bootstrap.css docs/components.html docs/templates/pages/components.mustache less/alerts.less less/button-groups.less less/buttons.less less/tests/css-tests.html
Diffstat (limited to 'less/button-groups.less')
-rw-r--r--less/button-groups.less21
1 files changed, 11 insertions, 10 deletions
diff --git a/less/button-groups.less b/less/button-groups.less
index 7b7c779ae..b6913b13c 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -22,9 +22,9 @@
font-size: 0; // Hack to remove whitespace that results from using inline-block
margin-top: @baseLineHeight / 2;
margin-bottom: @baseLineHeight / 2;
- .btn + .btn,
- .btn-group + .btn,
- .btn + .btn-group {
+ > .btn + .btn,
+ > .btn-group + .btn,
+ > .btn + .btn-group {
margin-left: 5px;
}
}
@@ -38,19 +38,20 @@
margin-left: -1px;
}
.btn-group > .btn,
-.btn-group > .dropdown-menu {
+.btn-group > .dropdown-menu,
+.btn-group > .popover {
font-size: @baseFontSize; // redeclare as part 2 of font-size inline-block hack
}
// Reset fonts for other sizes
.btn-group > .btn-mini {
- font-size: 11px;
+ font-size: @fontSizeMini;
}
.btn-group > .btn-small {
- font-size: 12px;
+ font-size: @fontSizeSmall;
}
.btn-group > .btn-large {
- font-size: 16px;
+ font-size: @fontSizeLarge;
}
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
@@ -189,13 +190,13 @@
.btn-group-vertical {
display: inline-block; // Make buttons only take up the width they need
}
-.btn-group-vertical .btn {
+.btn-group-vertical > .btn {
display: block;
float: none;
- width: 100%;
border-radius: 0;
+ max-width: 100%;
}
-.btn-group-vertical .btn + .btn {
+.btn-group-vertical > .btn + .btn {
margin-left: 0;
margin-top: -1px;
}