Sha256: 6ef5a88a0303603165201dfb2b61aabb5cc387ac43b8ce5561e352ca34341784

Contents?: true

Size: 287 Bytes

Versions: 3

Compression:

Stored size: 287 Bytes

Contents

@charset "UTF-8";

/// Strips the unit from a number.
///
/// @argument {number} $value
///
/// @example scss
///   $dimension: strip-unit(10em);
///
/// @example css
///   $dimension: 10;
///
/// @return {number}

@function strip-unit($value) {
  @return ($value / ($value * 0 + 1));
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bourbon-5.0.0.beta.3 core/bourbon/library/_strip-unit.scss
bourbon-5.0.0.beta.2 core/bourbon/library/_strip-unit.scss
bourbon-5.0.0.beta.1 core/bourbon/functions/_strip-unit.scss