Skip to content

Instantly share code, notes, and snippets.

@jamiebuilds
Created October 20, 2013 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiebuilds/7074443 to your computer and use it in GitHub Desktop.
Save jamiebuilds/7074443 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
@function calculateRem($size, $context: $base-font-size)
$remSize: $size / $context
@return $remSize + rem
$x-base: 16px
test
test: calculateRem(16px, $x-base) == "1rem"
test: calculateRem(16px, $x-base) == 1rem
test: calculateRem(16px, $x-base) == 1 + rem
test {
test: true;
test: false;
test: true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment