Skip to content

Instantly share code, notes, and snippets.

@githiro
Last active August 29, 2015 14:13
Show Gist options
  • Save githiro/bad257f2462d47f9b39a to your computer and use it in GitHub Desktop.
Save githiro/bad257f2462d47f9b39a to your computer and use it in GitHub Desktop.
SASS: strip-unit function. This strips the unit of measure and returns it.
@function strip-unit($num) {
@return $num / ($num * 0 + 1);
}
@githiro
Copy link
Author

githiro commented Jan 19, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment