aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-27 09:40:04 -0800
committerMark Otto <[email protected]>2012-01-27 09:40:04 -0800
commit97546adc90a9c8149bb4560641b4164338e38063 (patch)
treed1ec231e7a74a803d07e8a01f8b696d546173046 /less/forms.less
parente44a7dd4ff2d505e6bc41ba0a5fdf66650cdf605 (diff)
parentf51e703ba6a87ad504682c16b6dd747ebcfd2afb (diff)
downloadbootstrap-97546adc90a9c8149bb4560641b4164338e38063.tar.xz
bootstrap-97546adc90a9c8149bb4560641b4164338e38063.zip
Merge branch 'ie_7_base' of https://github.com/phopkins/bootstrap into phopkins-ie_7_base
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;
+ }
+ }
}