Created
December 25, 2021 02:01
-
-
Save danielstgt/fbd1b277fb8e0adbf4131ec3181d6b10 to your computer and use it in GitHub Desktop.
CSS text rendering based on hover detection
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
/* is not a touch device */ | |
@media (hover: hover) { | |
body { text-rendering: optimizeLegibility; } | |
} | |
/* is a touch device */ | |
@media (hover: none) { | |
body { text-rendering: optimizeSpeed; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tailwind CSS Usage / Base Layer