]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixes up internal and external spacing for IE7 buttons
authorPete Hopkins <phopkins@twitter.com>
Thu, 26 Jan 2012 22:32:44 +0000 (17:32 -0500)
committerPete Hopkins <phopkins@twitter.com>
Fri, 27 Jan 2012 17:08:56 +0000 (12:08 -0500)
less/buttons.less

index d7f5337832627c033f124799d527d7ec06f8e60e..f18cf9d955954678a9c7d6a070f27cfcf3437804 100644 (file)
   // Button Base
   display: inline-block;
   padding: 4px 10px 4px;
+  *padding: 2px 10px;
+  // IE7 likes to collapse the whitespace before the button, so bring it back...
+  *margin-left: 4px;
+  &:first-child {
+    // ...but not before the first button
+    *margin-left: 0;
+  }
   font-size: @baseFontSize;
   line-height: @baseLineHeight;
   color: @grayDark;