Last active
October 13, 2015 15:38
-
-
Save jesgundy/4217763 to your computer and use it in GitHub Desktop.
Rem font-sizing mixin
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
// REM Font Size Mixin | |
html { | |
font-size: 62.5%; | |
} | |
@mixin font-size ( $size: 14 ) { | |
font-size: $size + px; | |
font-size: $size/10 + rem; | |
} | |
body { | |
@include font-size( 14 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment