Skip to content

Instantly share code, notes, and snippets.

@peterschmiz
Created September 19, 2017 14:26
Show Gist options
  • Save peterschmiz/81a99313fdab54c01e2f96ddfe95d690 to your computer and use it in GitHub Desktop.
Save peterschmiz/81a99313fdab54c01e2f96ddfe95d690 to your computer and use it in GitHub Desktop.
Responsive type example (with responsive type PostCSS plugin)
// https://github.com/seaneking/postcss-responsive-type
h3 {
margin-bottom: calc(28px + 34 * ((100vw - 375px) / 1650));
font-size: responsive 18px 26px;
font-range: 375px 2025px;
text-transform: uppercase;
line-height: responsive 22px 28px;
line-height-range: 375px 2025px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment