Skip to content

Instantly share code, notes, and snippets.

@antlis
Created August 17, 2014 21:08
Show Gist options
  • Save antlis/b0587803661c69453fc5 to your computer and use it in GitHub Desktop.
Save antlis/b0587803661c69453fc5 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.1)
// ----
@function calc-em($target-px, $context)
@return ($target-px / $context) * 1em
.box
padding-left: calc-em(10px, 16px)
.box {
padding-left: 0.625em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment