diff options
Diffstat (limited to 'debian/missing-sources/bourbon/app/assets/stylesheets/functions/_is-length.scss')
-rw-r--r-- | debian/missing-sources/bourbon/app/assets/stylesheets/functions/_is-length.scss | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/missing-sources/bourbon/app/assets/stylesheets/functions/_is-length.scss b/debian/missing-sources/bourbon/app/assets/stylesheets/functions/_is-length.scss new file mode 100644 index 0000000..4e1b333 --- /dev/null +++ b/debian/missing-sources/bourbon/app/assets/stylesheets/functions/_is-length.scss @@ -0,0 +1,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)))); +} |