Skip to content

Instantly share code, notes, and snippets.

@iamcarrico
Created October 17, 2013 19:47
Show Gist options
  • Save iamcarrico/7031071 to your computer and use it in GitHub Desktop.
Save iamcarrico/7031071 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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;
}
.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