Skip to content

Instantly share code, notes, and snippets.

@erikyo
Created September 15, 2017 14:58
Show Gist options
  • Save erikyo/e40b33c4409af565082562fe6a1d73cb to your computer and use it in GitHub Desktop.
Save erikyo/e40b33c4409af565082562fe6a1d73cb to your computer and use it in GitHub Desktop.
SASS strip unit from passed value
// 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