Commit e6e0e2ac authored by Mark Otto's avatar Mark Otto

fixes #4442: allow for .btn within a .btn-toolbar without .btn-group

parent 4d2f584f
...@@ -3328,6 +3328,7 @@ input[type="submit"].btn.btn-mini { ...@@ -3328,6 +3328,7 @@ input[type="submit"].btn.btn-mini {
.btn-toolbar { .btn-toolbar {
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;
font-size: 0;
} }
.btn-toolbar .btn-group { .btn-toolbar .btn-group {
...@@ -3338,6 +3339,11 @@ input[type="submit"].btn.btn-mini { ...@@ -3338,6 +3339,11 @@ input[type="submit"].btn.btn-mini {
*zoom: 1; *zoom: 1;
} }
.btn-toolbar .btn-group + .btn,
.btn-toolbar .btn + .btn-group {
margin-left: 5px;
}
.btn-group > .btn { .btn-group > .btn {
position: relative; position: relative;
margin-left: -1px; margin-left: -1px;
......
...@@ -18,12 +18,17 @@ ...@@ -18,12 +18,17 @@
// Optional: Group multiple button groups together for a toolbar // Optional: Group multiple button groups together for a toolbar
.btn-toolbar { .btn-toolbar {
font-size: 0; // Hack to remove whitespace that results from using inline-block
margin-top: @baseLineHeight / 2; margin-top: @baseLineHeight / 2;
margin-bottom: @baseLineHeight / 2; margin-bottom: @baseLineHeight / 2;
.btn-group { .btn-group {
display: inline-block; display: inline-block;
.ie7-inline-block(); .ie7-inline-block();
} }
.btn-group + .btn,
.btn + .btn-group {
margin-left: 5px;
}
} }
// Float them, remove border radius, then re-add to first and last elements // Float them, remove border radius, then re-add to first and last elements
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment