Created
July 21, 2020 13:55
-
-
Save jacubsmith/52af92e9afd22a4fc327e08a9ed3b5ee to your computer and use it in GitHub Desktop.
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
// Convert pixels to ems | |
// eg. for a relational value of 12px write em(12) when the parent is 16px | |
// if the parent is another value say 24px write em(12, 24) | |
@function em($pxval, $base: $fzBase) { | |
@return ($pxval / $base) * 1em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment