2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

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.
This commit is contained in:
Mark Otto
2013-07-20 21:09:03 -07:00
parent df851b40d1
commit a63db4d2f9
4 changed files with 5 additions and 7 deletions
+1 -2
View File
@@ -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