Created
January 3, 2015 19:08
-
-
Save mauricerenck/e4c9061ee90140ce8d12 to your computer and use it in GitHub Desktop.
[scss] font pixel rem setup
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
@mixin font-size($sizeValue: 16) { | |
font-size: $sizeValue + px; | |
font-size: ($sizeValue / 10 ) + rem; | |
} | |
html { | |
font-size: 62.5%; | |
} | |
body { | |
@include font-size(16); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment