Created
April 28, 2023 15:48
-
-
Save yikuansun/eea21ff160458262c279b8c7a3f51f09 to your computer and use it in GitHub Desktop.
Make Firefox number inputs behave like Chrome
This file contains hidden or 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
/* Make Firefox number inputs show/hide spinner arrows like in Chrome */ | |
input[type=number] { | |
-moz-appearance: textfield; | |
} | |
input[type=number]:hover { | |
-moz-appearance: revert!important; | |
} | |
input[type=number]:focus { | |
-moz-appearance: revert!important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment