From: Pete Hopkins Date: Thu, 26 Jan 2012 23:03:53 +0000 (-0500) Subject: Compensates for IE7 first-child-input-inheriting-hasLayout-parents-margins bug for... X-Git-Tag: v2.0.0~6^2~126^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=526d38839332907062cde27727900deb06e0c50b;p=thirdparty%2Fbootstrap.git Compensates for IE7 first-child-input-inheriting-hasLayout-parents-margins bug for appended text form element --- diff --git a/less/forms.less b/less/forms.less index d2e049de5a..55a6463687 100644 --- a/less/forms.less +++ b/less/forms.less @@ -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; + } + } }