summaryrefslogtreecommitdiffstats
path: root/debian/missing-sources/bourbon/app/assets/stylesheets/functions/_strip-units.scss
diff options
context:
space:
mode:
Diffstat (limited to 'debian/missing-sources/bourbon/app/assets/stylesheets/functions/_strip-units.scss')
-rw-r--r--debian/missing-sources/bourbon/app/assets/stylesheets/functions/_strip-units.scss22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/missing-sources/bourbon/app/assets/stylesheets/functions/_strip-units.scss b/debian/missing-sources/bourbon/app/assets/stylesheets/functions/_strip-units.scss
new file mode 100644
index 0000000..2cb0ff0
--- /dev/null
+++ b/debian/missing-sources/bourbon/app/assets/stylesheets/functions/_strip-units.scss
@@ -0,0 +1,22 @@
+@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) {
+ @if $output-bourbon-deprecation-warnings == true {
+ @warn "[Bourbon] [Deprecation] `strip-units` is deprecated and will be " +
+ "removed in 5.0.0 and replaced by the `strip-unit` function.";
+ }
+
+ @return ($value / ($value * 0 + 1));
+}