Created
October 7, 2017 22:04
-
-
Save rniswonger/f70b94203845e0921af1e362cbe2e30d to your computer and use it in GitHub Desktop.
Sass Mixin: Generate EM value from px
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
// generate an em value | |
@function em($target_px, $context_px: 16) { | |
@return $target_px / $context_px * 1em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment