webseite-grav/plugins/git-sync/scss/vendor/bourbon/functions/_is-length.scss

12 lines
314 B
SCSS
Raw Permalink Normal View History

2021-04-30 11:23:26 +02:00
@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))));
}