Sha256: 5bb62ab9f50c204c25c060f37c43c71f29262a1d616a21652e19060ee46557d4

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

@charset "UTF-8";

/// Checks for a valid CSS length.
///
/// @argument {string} $value
///
/// @access private

@function _is-length($value) {
  @return type-of($value) != "null" and (str-slice($value + "", 1, 4) == "calc"
       or index(auto inherit initial 0, $value)
       or (type-of($value) == "number" and not(unitless($value))));
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bourbon-5.0.0.beta.3 core/bourbon/validators/_is-length.scss
bourbon-5.0.0.beta.2 core/bourbon/validators/_is-length.scss
bourbon-5.0.0.beta.1 core/bourbon/functions/_is-length.scss