Last active
July 17, 2018 10:20
-
-
Save sebastiano-guerriero/3fe7a121534021846e49a337425e0d2c 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
.component h1 { | |
font-size: 3em; // the size is no longer affected by the --text-scale-ratio | |
font-size: calc(var(--text-base-size) * 3); // use base size to create new value - off scale | |
font-size: calc(var(--text-xxl) - 0.8em); // use original font size to create new value - off scale | |
font-size: var(--text-xl); // update the value of the font size using a different variable | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment