Sha256: 913c6bc8a05d9a286bdbb106c03740d2ed4f27a65d3c84038b884ea94b93c421

Contents?: true

Size: 257 Bytes

Versions: 4

Compression:

Stored size: 257 Bytes

Contents

// Check for a valid length

@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

4 entries across 4 versions & 2 rubygems

Version Path
frozen-0.0.1 dummy/assets/stylesheets/bourbon/functions/_is-length.scss
bourbon-4.1.1 app/assets/stylesheets/functions/_is-length.scss
bourbon-4.1.0 app/assets/stylesheets/functions/_is-length.scss
bourbon-4.1.0.pre app/assets/stylesheets/functions/_is-length.scss