0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-28 20:52:21 +01:00

Compensates for IE7 first-child-input-inheriting-hasLayout-parents-margins bug for appended text form element

This commit is contained in:
Pete Hopkins 2012-01-26 18:03:53 -05:00
parent 841e386daf
commit 526d388393

View 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;
}
}
}