summaryrefslogtreecommitdiffstats
path: root/debian/missing-sources/bourbon/app/assets/stylesheets/functions/_is-length.scss
blob: 4e1b333baffaefca3e9be970286433020c485e37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@charset "UTF-8";

/// Checks for a valid CSS length.
///
/// @param {String} $value

@function is-length($value) {
  @if $output-bourbon-deprecation-warnings == true {
    @warn "[Bourbon] [Deprecation] `is-length` is deprecated and will be " +
    "removed in 5.0.0.";
  }

  @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))));
}