Skip to content

Instantly share code, notes, and snippets.

@salahm
Created December 5, 2012 15:19
Show Gist options
  • Save salahm/4216468 to your computer and use it in GitHub Desktop.
Save salahm/4216468 to your computer and use it in GitHub Desktop.
Sass - Px to em
@function pxtoem($cible, $contexte: $base-font-size) {
@if $cible == 0 { @return 0 }
@return $cible / $contexte + 0em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment