Created
February 1, 2015 16:43
-
-
Save capitalJT/7129e79b0b5eab52fbd7 to your computer and use it in GitHub Desktop.
sass mixin for rem font sizing & line height with px fallback
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, $line: $sizeValue * 1.5) { | |
font-size: ($sizeValue) + px; | |
line-height: ($line) + px; | |
font-size: ($sizeValue / 16) + rem; | |
line-height: ($line / 16) + rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment