aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorPete Hopkins <[email protected]>2012-01-26 18:03:53 -0500
committerPete Hopkins <[email protected]>2012-01-27 12:16:17 -0500
commit526d38839332907062cde27727900deb06e0c50b (patch)
treef70f8c5f8503f83504bdd8d213960d5420a91ee8 /less/forms.less
parent841e386daf01e06f2eba00725545f3e3315334b3 (diff)
downloadbootstrap-526d38839332907062cde27727900deb06e0c50b.tar.xz
bootstrap-526d38839332907062cde27727900deb06e0c50b.zip
Compensates for IE7 first-child-input-inheriting-hasLayout-parents-margins bug for appended text form element
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less9
1 files changed, 9 insertions, 0 deletions
diff --git a/less/forms.less b/less/forms.less
index d2e049de5..55a646368 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;
+ }
+ }
}