]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Compensates for IE7 first-child-input-inheriting-hasLayout-parents-margins bug for...
authorPete Hopkins <phopkins@twitter.com>
Thu, 26 Jan 2012 23:03:53 +0000 (18:03 -0500)
committerPete Hopkins <phopkins@twitter.com>
Fri, 27 Jan 2012 17:16:17 +0000 (12:16 -0500)
less/forms.less

index d2e049de5a40934c416c74e77eecad20135552e7..55a64636872287ec53f3c793c6a80b7da7fe3da9 100644 (file)
@@ -440,6 +440,15 @@ select:focus:required:invalid {
     margin-left: -1px;
     .border-radius(0 3px 3px 0);
   }
+  input:first-child {
+    // In IE7, having a hasLayout container (from clearfix's zoom:1) can make the first input
+    // inherit the sum of its ancestors' margins.
+    *margin-left: -160px;
+
+    &+.add-on {
+      *margin-left: -21px;
+    }
+  }
 }