Skip to content

Instantly share code, notes, and snippets.

@bruno-barros
Created October 6, 2015 01:42
Show Gist options
  • Save bruno-barros/53107422423218a917fb to your computer and use it in GitHub Desktop.
Save bruno-barros/53107422423218a917fb to your computer and use it in GitHub Desktop.
html {
font-size: calc(12px + 9 * ( (100vw - 420px) / 860));
}
@media screen and (max-width: 420px) {
html {
font-size: 12px;
}
}
@media screen and (min-width: 1280px) {
html {
font-size: 21px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment