Last active
August 29, 2015 14:02
-
-
Save madkap/b5b61e4ca5c4fb9253a3 to your computer and use it in GitHub Desktop.
Fontsize Mixin - sizing based on rem with 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
html { | |
font-size: 62.5%; //sets fontsize to 10px | |
} | |
@mixin fontsize($size:1.6, $line: $size * 1.5){ | |
font-size: ($size * 10) + px; | |
line-height: ($line * 10) + px; | |
font-size: $size + rem; | |
line-height: $line + rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
credit: @dennis-best