Debian Codegraph @

debian/missing-sources/bourbon/app/assets/stylesheets/functions/_strip-units.scss

raw
1 @charset "UTF-8";
2
3 /// Strips the unit from a number.
4 ///
5 /// @param {Number (With Unit)} $value
6 ///
7 /// @example scss - Usage
8 /// $dimension: strip-units(10em);
9 ///
10 /// @example css - CSS Output
11 /// $dimension: 10;
12 ///
13 /// @return {Number (Unitless)}
14
15 @function strip-units($value) {
16 @if $output-bourbon-deprecation-warnings == true {
17 @warn "[Bourbon] [Deprecation] `strip-units` is deprecated and will be " +
18 "removed in 5.0.0 and replaced by the `strip-unit` function.";
19 }
20
21 @return ($value / ($value * 0 + 1));
22 }