Created
June 12, 2012 19:34
-
-
Save Jaswetz/2919647 to your computer and use it in GitHub Desktop.
SCSS: mixins.scss
This file contains hidden or 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
| //---------------------------------------------------------------------------- | |
| // mixins.scss | |
| //---------------------------------------------------------------------------- | |
| // --------------------------------------------------------------------------- | |
| // CONVERTING PX TO EM | |
| @function calc-em($target-px, $context) { | |
| @return ($target-px / $context) * 1em; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment