Last active
April 7, 2018 22:17
-
-
Save ericorruption/7c0355240c446a46b9d57c5e26f9d597 to your computer and use it in GitHub Desktop.
cool css snippets from https://mobile.twitter.com/justmarkup/status/974573989497593856
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
@media (prefers-reduced-motion: reduce) { | |
* { | |
animation: none !important; | |
transition: none !important; | |
} | |
} | |
/* good line length */ | |
p { | |
max-width: 38em; | |
} | |
svg { | |
fill: currentColor; | |
} | |
/* https://mobile.twitter.com/DavidKPiano/status/965704092545900544 */ | |
.font-performance { | |
font-display:optional; | |
} | |
/* cool starting point */ | |
body { | |
font-size: calc(0.8em + 1vw); | |
line-height: calc(1.4em + 1vh); | |
margin: 7.5vmin; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment