mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
* Forms and board tweaks for small screen sizes * Re-style game status indicators * Re-style viewing/offline indicator * Better eyecons 👁 * Re-organise CSS according to ITCSS principles * Pick new font from Google Fonts * Fix up tests * Move some things into partials
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));
|
|
}
|