Last active
August 14, 2019 22:36
-
-
Save goiblas/df468a69a9c6cf876d0ae2b1553764be to your computer and use it in GitHub Desktop.
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
:root { | |
--base: 16px; | |
--scale-factor: .28; | |
--rhythm: 24px; | |
} | |
@media(min-width: 768px) { | |
:root { | |
--scale-factor: .48; | |
} | |
} | |
body, h1, h2, h3, h4, h5, h6 { | |
font-size: calc( var(--base) + (var(--base) * var(--scale-factor) * var(--font-increase, 0))); | |
line-height: calc(var(--rhythm) + (var(--rhythm) * var(--rhythm-increase, 0))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment