aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-01-27 11:07:17 -0800
committerJacob Thornton <[email protected]>2012-01-27 11:07:17 -0800
commit3b3dbd7229f53eb71759def4eca90dfd7a2699f8 (patch)
tree89a8af1724ef8791a315a028c5515a5ec8500d3b /less/forms.less
parentaa594501bd24d51181dc3504602aa4aaefb1cb60 (diff)
parent97546adc90a9c8149bb4560641b4164338e38063 (diff)
downloadbootstrap-3b3dbd7229f53eb71759def4eca90dfd7a2699f8.tar.xz
bootstrap-3b3dbd7229f53eb71759def4eca90dfd7a2699f8.zip
Merge branch '2.0-wip' of https://github.com/twitter/bootstrap into 2.0-wip
Conflicts: docs/assets/css/bootstrap.css
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less10
1 files changed, 10 insertions, 0 deletions
diff --git a/less/forms.less b/less/forms.less
index 9e2e1dc1b..55a646368 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -192,6 +192,7 @@ textarea:focus {
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
.box-shadow(@shadow);
outline: 0;
+ outline: 1px dotted #666 \9; /* IE6-8 */
}
input[type=file]:focus,
input[type=checkbox]:focus,
@@ -439,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;
+ }
+ }
}