middleman/middleman-core/fixtures/minify-css-app/source/stylesheets/bourbon/functions/_is-length.scss
Thomas Reynolds 32891dc6fe SassC, woot
2015-09-28 11:24:37 -07:00

12 lines
314 B
SCSS

@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))));
}