Created
February 7, 2015 22:47
-
-
Save EdwardIrby/0b73f879932968a817f1 to your computer and use it in GitHub Desktop.
Font size SASS mxin
This file contains hidden or 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 Calc font size | |
@function calculateRem($size) { | |
$remSize: $size / 16px; | |
@return $remSize * 1rem; | |
} | |
@mixin font-size($size) { | |
font-size: $size; /* ie8 fallback */ | |
font-size: calculateRem($size); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment