Skip to content

Instantly share code, notes, and snippets.

@benvisser
Created March 28, 2014 20:31
Show Gist options
  • Save benvisser/9842344 to your computer and use it in GitHub Desktop.
Save benvisser/9842344 to your computer and use it in GitHub Desktop.
//font size mixin for using rems with px fallback
//usage: @include font-size(1.2);
@mixin font-size($sizeValue: 1.6) {
font-size: ($sizeValue * 10) + px;
font-size: $sizeValue + rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment