Normalize file select buttons (#574)

This commit is contained in:
Jonathan Neal 2016-04-11 19:48:51 -04:00
parent 2c4e2182e0
commit 26b2588335

12
normalize.css vendored
View File

@ -293,7 +293,7 @@ select { /* 1 */
/**
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
* controls in Android 4.
* 2. Correct the inability to style clickable types in iOS.
* 2. Correct the inability to style clickable types in iOS and Safari.
*/
button,
@ -408,3 +408,13 @@ textarea {
color: inherit;
opacity: 0.54;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Chrome and Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}