Skip to content

Instantly share code, notes, and snippets.

@capitalJT
Created February 1, 2015 16:43
Show Gist options
  • Save capitalJT/7129e79b0b5eab52fbd7 to your computer and use it in GitHub Desktop.
Save capitalJT/7129e79b0b5eab52fbd7 to your computer and use it in GitHub Desktop.
sass mixin for rem font sizing & line height with px fallback
@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