18 lines
297 B
SCSS
18 lines
297 B
SCSS
@charset "UTF-8";
|
|
|
|
/// Strips the unit from a number.
|
|
///
|
|
/// @argument {number} $value
|
|
///
|
|
/// @return {number (unitless)}
|
|
///
|
|
/// @example scss
|
|
/// $dimension: strip-unit(10em);
|
|
///
|
|
/// // Output
|
|
/// $dimension: 10;
|
|
|
|
@function strip-unit($value) {
|
|
@return ($value / ($value * 0 + 1));
|
|
}
|