Skip to content

Instantly share code, notes, and snippets.

@aamortimer
Created July 21, 2013 15:01
Show Gist options
  • Save aamortimer/6048796 to your computer and use it in GitHub Desktop.
Save aamortimer/6048796 to your computer and use it in GitHub Desktop.
CSS: rem font-size
@mixin font-size($size: 1.6, $line: $size * 1.5) {
font-size: ($size * 10) + px;
line-height: ($line * 10) + px;
font-size: $size + rem;
line-height: $line + rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment