Skip to content

Instantly share code, notes, and snippets.

@cadoo
Last active December 14, 2015 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cadoo/5008378 to your computer and use it in GitHub Desktop.
Save cadoo/5008378 to your computer and use it in GitHub Desktop.
Font size in rems, fallback to px
// Font size in rems, fallback to px
@mixin fspxrem($px, $context: 16) {
font-size: $px+px;
font-size: ($px/$context)+rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment