Skip to content

Instantly share code, notes, and snippets.

@mynameispj
Forked from ijy/Compass px to em
Created March 10, 2013 22:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mynameispj/5130787 to your computer and use it in GitHub Desktop.
Save mynameispj/5130787 to your computer and use it in GitHub Desktop.
Modified for SASS syntax...
@function em($target, $context: $base-font-size)
@if $target == 0
@return 0
@return $target / $context + 0em
$base-font-size: 16px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment