Skip to content

Instantly share code, notes, and snippets.

@jesgundy
Last active October 13, 2015 15:38
Show Gist options
  • Save jesgundy/4217763 to your computer and use it in GitHub Desktop.
Save jesgundy/4217763 to your computer and use it in GitHub Desktop.
Rem font-sizing mixin
// REM Font Size Mixin
html {
font-size: 62.5%;
}
@mixin font-size ( $size: 14 ) {
font-size: $size + px;
font-size: $size/10 + rem;
}
body {
@include font-size( 14 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment