Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pascalmaddin/5d1e449dd7f2c47e5c82 to your computer and use it in GitHub Desktop.
Save pascalmaddin/5d1e449dd7f2c47e5c82 to your computer and use it in GitHub Desktop.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
// _config.scss
$base-font-size: 16px;
$support-legacy: true;
@mixin rem($value, $base: $base-font-size) {
@if $support-legacy {
font-size: $value;
}
font-size: $value / $base * 1rem;
}
element {
@include rem(14px);
}
element {
font-size: 14px;
font-size: 0.875rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment