mirror of
https://github.com/Xevion/old.xevion.github.io.git
synced 2025-12-07 01:15:39 -06:00
configure
This commit is contained in:
17
_scss/bourbon/functions/_strip-units.scss
vendored
Normal file
17
_scss/bourbon/functions/_strip-units.scss
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
/// Strips the unit from a number.
|
||||
///
|
||||
/// @param {Number (With Unit)} $value
|
||||
///
|
||||
/// @example scss - Usage
|
||||
/// $dimension: strip-units(10em);
|
||||
///
|
||||
/// @example css - CSS Output
|
||||
/// $dimension: 10;
|
||||
///
|
||||
/// @return {Number (Unitless)}
|
||||
|
||||
@function strip-units($value) {
|
||||
@return ($value / ($value * 0 + 1));
|
||||
}
|
||||
Reference in New Issue
Block a user