Sha256: 6421f1bee32b49189767e81686853cfb7bbdc977b042ceba80d826c26e71d1ad

Contents?: true

Size: 314 Bytes

Versions: 128

Compression:

Stored size: 314 Bytes

Contents

@charset "UTF-8";

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

@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

128 entries across 121 versions & 21 rubygems

Version Path
uswds-jekyll-2.0.1 assets/uswds/scss/lib/functions/_is-length.scss
uswds-jekyll-2.0.1 _sass/uswds/lib/functions/_is-length.scss
uswds-jekyll-2.0.0 assets/uswds/scss/lib/functions/_is-length.scss
uswds-jekyll-2.0.0 _sass/uswds/lib/functions/_is-length.scss
uswds-jekyll-1.4.1 assets/uswds/scss/lib/functions/_is-length.scss
uswds-jekyll-1.4.1 _sass/uswds/lib/functions/_is-length.scss
soffes-blog-jekyll-0.2.0 _sass/bourbon/functions/_is-length.scss
soffes-blog-jekyll-0.1.0 _sass/bourbon/functions/_is-length.scss
codelation_ui-1.0.57 app/assets/stylesheets/codelation_ui/_base_resources/bourbon/functions/_is-length.scss
codelation_ui-1.0.1 app/assets/stylesheets/codelation_ui/_base_resources/bourbon/functions/_is-length.scss
codelation_ui-1.0.0 app/assets/stylesheets/codelation_ui/_base_resources/bourbon/functions/_is-length.scss
middleman-core-4.2.1 fixtures/minify-css-app/source/stylesheets/bourbon/functions/_is-length.scss
middleman-core-4.2.0 fixtures/minify-css-app/source/stylesheets/bourbon/functions/_is-length.scss
middleman-core-4.1.14 fixtures/minify-css-app/source/stylesheets/bourbon/functions/_is-length.scss
middleman-core-4.1.13 fixtures/minify-css-app/source/stylesheets/bourbon/functions/_is-length.scss
middleman-core-4.1.12 fixtures/minify-css-app/source/stylesheets/bourbon/functions/_is-length.scss
webtask-0.2.0 lib/webtask/public/stylesheets/sass/bourbon/functions/_is-length.scss
webtask-0.1.0 lib/webtask/public/stylesheets/sass/bourbon/functions/_is-length.scss
StyleSass-0.1.5 app/assets/stylesheets/functions/_is-length.scss
middleman-core-4.1.11 fixtures/minify-css-app/source/stylesheets/bourbon/functions/_is-length.scss