-
-
Save pascalmaddin/5d1e449dd7f2c47e5c82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// 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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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