Created
September 15, 2017 14:58
-
-
Save erikyo/e40b33c4409af565082562fe6a1d73cb to your computer and use it in GitHub Desktop.
SASS strip unit from passed value
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
// strip unit from passed value | |
@function strip_unit($val) { | |
@return $val / ($val * 0 + 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment