]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #4442: allow for .btn within a .btn-toolbar without .btn-group
authorMark Otto <markotto@twitter.com>
Sat, 18 Aug 2012 23:50:26 +0000 (16:50 -0700)
committerMark Otto <markotto@twitter.com>
Sat, 18 Aug 2012 23:50:26 +0000 (16:50 -0700)
docs/assets/css/bootstrap.css
less/button-groups.less

index 3af4a794597ad235f502558874124cf2fd6d9dc8..82fee6daeb651aab5e6db9b40df1b716b56ee1d6 100644 (file)
@@ -3328,6 +3328,7 @@ input[type="submit"].btn.btn-mini {
 .btn-toolbar {
   margin-top: 10px;
   margin-bottom: 10px;
+  font-size: 0;
 }
 
 .btn-toolbar .btn-group {
@@ -3338,6 +3339,11 @@ input[type="submit"].btn.btn-mini {
   *zoom: 1;
 }
 
+.btn-toolbar .btn-group + .btn,
+.btn-toolbar .btn + .btn-group {
+  margin-left: 5px;
+}
+
 .btn-group > .btn {
   position: relative;
   margin-left: -1px;
index cbb237a6112c8fafb60aaab7af135beb5b6e5bea..1cc758b7f682617e52d3803853d6c1b833f2de63 100644 (file)
 
 // Optional: Group multiple button groups together for a toolbar
 .btn-toolbar {
+  font-size: 0; // Hack to remove whitespace that results from using inline-block
   margin-top: @baseLineHeight / 2;
   margin-bottom: @baseLineHeight / 2;
   .btn-group {
     display: 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