Created
October 17, 2013 19:47
-
-
Save iamcarrico/7031071 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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.0.rc.1) | |
// Compass (v0.13.alpha.7) | |
// ---- | |
$base-font-size: 16px; | |
@function em($px, $base: $base-font-size) { | |
@return ($px / $base) * 1em; | |
} | |
$_var1: em(13px); | |
// This was giving an error | |
.foo { | |
font-size: $_var1; | |
line-height: (2 * $_var1); | |
} | |
// This was not. | |
.foo { | |
font-size: $_var1; | |
line-height: em(13px) * 2; | |
} | |
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
.foo { | |
font-size: 0.8125em; | |
line-height: 1.625em; | |
} | |
.foo { | |
font-size: 0.8125em; | |
line-height: 1.625em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment