added bourbon to the source files and included in the main scss
[theme-danix.xyz.git] / assets / sass / bourbon / bourbon / library / _strip-unit.scss
diff --git a/assets/sass/bourbon/bourbon/library/_strip-unit.scss b/assets/sass/bourbon/bourbon/library/_strip-unit.scss
new file mode 100644 (file)
index 0000000..f4f660a
--- /dev/null
@@ -0,0 +1,17 @@
+@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));
+}