Skip to content

Instantly share code, notes, and snippets.

@robtarr
Created August 24, 2012 19:41
Show Gist options
  • Save robtarr/3454905 to your computer and use it in GitHub Desktop.
Save robtarr/3454905 to your computer and use it in GitHub Desktop.
SCSS mixin for REMs (done with jondaiello)
@mixin rem-width( $em-size ) {
width: $em-size * $base-font-multiplier * 16px;
width: $em-size * 1rem;
}
html {
font-size: $base-font-size;
}
$base-font-multiplier: 1; // master font size integer
$base-font-size: $base-font-multiplier * 100%;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment