Created
April 29, 2015 19:27
-
-
Save clayb/f3da058c4790e710d104 to your computer and use it in GitHub Desktop.
Px to EM mixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mixin to convert px to em | |
$base-font-size: 16px; | |
@function em($px, $base: $base-font-size) { | |
@return ($px / $base) * 1em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment