Last active
December 27, 2015 10:39
-
-
Save chriswrightdesign/7312561 to your computer and use it in GitHub Desktop.
Mixin to calculate ems
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
@function em( $target, $context ) { | |
@return $target / $context * 1em; | |
} | |
//usage font-size: em(24px, 16px); | |
//will return font-size:1.5em; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment