Created
December 7, 2021 18:00
-
-
Save perrygovier/3193ba18b63079ff2615d6b263c077f5 to your computer and use it in GitHub Desktop.
fix for safari file-selector-button
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
[type="file"] { | |
&::file-selector-button { | |
display: none; | |
} | |
// Safari only | |
@media not all and (min-resolution:.001dpcm) { | |
@supports (-webkit-appearance:none) { | |
text-indent: -120px; | |
margin-left: -7em; | |
&::file-selector-button { | |
display: inline; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment