Created
April 3, 2016 05:49
-
-
Save lachlanjc/ed27892b88a1477b30e22615a16cee0c 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
//----------------------------- | |
// Units functions | |
//----------------------------- | |
// Strip units from passed value | |
@function stripUnit($n) { | |
@return $n / ($n*0+1); | |
} | |
//--------------------------- | |
// The rem() function returns the argument converted to rem. | |
// Argument: number to be converted. | |
//--------------------------- | |
@function rem($amt) { | |
@return stripUnit($amt) * 1rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment