aboutsummaryrefslogtreecommitdiff
path: root/less/button-groups.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-12-11 22:39:03 -0800
committerMark Otto <[email protected]>2013-12-11 22:39:03 -0800
commit4fc2907723e7f7bb5b14eb5cec94d629b6834e7f (patch)
treea9c1df41fbf5f912234f762f03668ea4ef9fd2b7 /less/button-groups.less
parent0e8baab34ae21c813afb9d8c24b3cb2105aebc46 (diff)
parent9966d035cd35c510369286cbb645340bdd6ffc95 (diff)
downloadbootstrap-4fc2907723e7f7bb5b14eb5cec94d629b6834e7f.tar.xz
bootstrap-4fc2907723e7f7bb5b14eb5cec94d629b6834e7f.zip
Merge branch 'master' into docs_derp
Conflicts: docs-assets/css/docs.css docs-assets/js/application.js
Diffstat (limited to 'less/button-groups.less')
-rw-r--r--less/button-groups.less44
1 files changed, 9 insertions, 35 deletions
diff --git a/less/button-groups.less b/less/button-groups.less
index c25357622..ef9c34e77 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -2,37 +2,6 @@
// Button groups
// --------------------------------------------------
-// Button carets
-//
-// Match the button text color to the arrow/caret for indicating dropdown-ness.
-
-.caret {
- .btn-default & {
- border-top-color: @btn-default-color;
- }
- .btn-primary &,
- .btn-success &,
- .btn-warning &,
- .btn-danger &,
- .btn-info & {
- border-top-color: #fff;
- }
-}
-.dropup {
- .btn-default .caret {
- border-bottom-color: @btn-default-color;
- }
- .btn-primary,
- .btn-success,
- .btn-warning,
- .btn-danger,
- .btn-info {
- .caret {
- border-bottom-color: #fff;
- }
- }
-}
-
// Make the div behave like a button
.btn-group,
.btn-group-vertical {
@@ -68,7 +37,7 @@
// Optional: Group multiple button groups together for a toolbar
.btn-toolbar {
- .clearfix();
+ &:extend(.clearfix all);
.btn-group {
float: left;
@@ -178,7 +147,8 @@
.btn-group-vertical {
> .btn,
- > .btn-group {
+ > .btn-group,
+ > .btn-group > .btn {
display: block;
float: none;
width: 100%;
@@ -187,7 +157,7 @@
// Clear floats so dropdown menus can be properly placed
> .btn-group {
- .clearfix();
+ &:extend(.clearfix all);
> .btn {
float: none;
}
@@ -238,11 +208,15 @@
width: 100%;
table-layout: fixed;
border-collapse: separate;
- .btn {
+ > .btn,
+ > .btn-group {
float: none;
display: table-cell;
width: 1%;
}
+ > .btn-group .btn {
+ width: 100%;
+ }
}