]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #5107: make all .btn-group inline-block by default instead of just within a...
authorMark Otto <markotto@twitter.com>
Wed, 12 Sep 2012 23:37:41 +0000 (16:37 -0700)
committerMark Otto <markotto@twitter.com>
Wed, 12 Sep 2012 23:37:41 +0000 (16:37 -0700)
docs/assets/css/bootstrap.css
less/button-groups.less

index 37700b36caf6604b31efe931a483747249b500fb..654da5b890130734663bc8b3840a1f7bfe0fde0a 100644 (file)
@@ -3445,10 +3445,13 @@ input[type="submit"].btn.btn-mini {
 
 .btn-group {
   position: relative;
+  display: inline-block;
+  *display: inline;
   *margin-left: .3em;
   font-size: 0;
   white-space: nowrap;
   vertical-align: middle;
+  *zoom: 1;
 }
 
 .btn-group:first-child {
@@ -3465,14 +3468,6 @@ input[type="submit"].btn.btn-mini {
   font-size: 0;
 }
 
-.btn-toolbar .btn-group {
-  display: inline-block;
-  *display: inline;
-  /* IE7 inline-block hack */
-
-  *zoom: 1;
-}
-
 .btn-toolbar .btn + .btn,
 .btn-toolbar .btn-group + .btn,
 .btn-toolbar .btn + .btn-group {
index 7bd639aac4ffa49f1b02bd01e6854b6822a514e2..dcae11336c316414877e82584a82557eb449b171 100644 (file)
@@ -6,6 +6,8 @@
 // Make the div behave like a button
 .btn-group {
   position: relative;
+  display: inline-block;
+  .ie7-inline-block();
   font-size: 0; // remove as part 1 of font-size inline-block hack
   vertical-align: middle; // match .btn alignment given font-size hack above
   white-space: nowrap; // prevent buttons from wrapping when in tight spaces (e.g., the table on the tests page)
   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 + .btn,
   .btn-group + .btn,
   .btn + .btn-group {