forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cross-browser compatible styling for input[type=file] (publiclab#5424)
* Apply styling * Add comments
- Loading branch information
1 parent
20c4fd0
commit 7a706a1
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
================================================================ | ||
We can start using this file to document and fix all cross-browser inconsistencies | ||
we find in one place | ||
================================================================ | ||
*/ | ||
|
||
|
||
/* Firefox ignores line-height for input[type="file"] but Chrome doesn't and the result | ||
with Bootstrap styling is it gets misaligned in Chrome. This fix is confirmed to create | ||
compatible alignment in Chrome, Safari, and Firefox in MacOS */ | ||
input[type="file"] { | ||
line-height: 0 !important; | ||
} |