Last active
December 14, 2015 01:39
-
-
Save cadoo/5008378 to your computer and use it in GitHub Desktop.
Font size in rems, fallback to px
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
// 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