aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-20 21:09:03 -0700
committerMark Otto <[email protected]>2013-07-20 21:09:03 -0700
commita63db4d2f91c056310fc9a24891dbd161672451b (patch)
treef5f41e368b3522d1c170b8d3d067c013d9eb0f39 /less/forms.less
parentdf851b40d1accb1c6db44ac77a28c2e76273581b (diff)
downloadbootstrap-a63db4d2f91c056310fc9a24891dbd161672451b.tar.xz
bootstrap-a63db4d2f91c056310fc9a24891dbd161672451b.zip
Update file input to remove height and line-height
This particular form control is wildly inaccurate across browsers, so we're removing the `height` and `line-height`, but adding `display: block` so it renders similarly to our other inputs.
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less3
1 files changed, 1 insertions, 2 deletions
diff --git a/less/forms.less b/less/forms.less
index 8d6c4d189..c366eb009 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -124,8 +124,7 @@ input[type="checkbox"] {
// Set the height of select and file controls to match text inputs
input[type="file"] {
- height: @input-height-base; /* In IE7, the height of the select element cannot be changed by height, only font-size. TODO: Check if this is still needed when dropping IE7 support */
- line-height: @input-height-base;
+ display: block;
}
// Make multiple select elements height not fixed