mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
20 lines
321 B
SCSS
20 lines
321 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;
|
|
|
|
@use "sass:math";
|
|
|
|
@function strip-unit($value) {
|
|
@return math.div($value, $value * 0 + 1);
|
|
}
|