Created
December 13, 2016 14:05
-
-
Save pankajpatel/3ed48c5bad792a54b2f32237123a9670 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
$baseFontSize: 14px !default; | |
// function to calculate em font size | |
@function em($target, $context: $baseFontSize) { | |
@if $target==0 { | |
@return 0; | |
} | |
@return $target / $context+ 0em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment