@function strip-unit($number) {
@if type-of($number) == "number" and not unitless($number) {
@return $number / ($number * 0 + 1);
}
@return $number;
}
Strip unit SCSS function
SCSS function to strip unit off of a CSS value, e.g. 20px --> 20