From a63db4d2f91c056310fc9a24891dbd161672451b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 20 Jul 2013 21:09:03 -0700 Subject: 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. --- less/forms.less | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'less/forms.less') 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 -- cgit v1.2.3