debian/missing-sources/bourbon/app/assets/stylesheets/functions/_is-length.scss
raw| 1 | @charset "UTF-8"; |
| 2 | |
| 3 | /// Checks for a valid CSS length. |
| 4 | /// |
| 5 | /// @param {String} $value |
| 6 | |
| 7 | @function is-length($value) { |
| 8 | @if $output-bourbon-deprecation-warnings == true { |
| 9 | @warn "[Bourbon] [Deprecation] `is-length` is deprecated and will be " + |
| 10 | "removed in 5.0.0."; |
| 11 | } |
| 12 | |
| 13 | @return type-of($value) != "null" and (str-slice($value + "", 1, 4) == "calc" |
| 14 | or index(auto inherit initial 0, $value) |
| 15 | or (type-of($value) == "number" and not(unitless($value)))); |
| 16 | } |