SnapKit/_sass/bourbon/functions/_is-size.scss

14 lines
294 B
SCSS
Raw Permalink Normal View History

2015-04-15 18:52:48 +08:00
@charset "UTF-8";
/// Checks for a valid CSS size.
///
/// @param {String} $value
///
/// @require {function} contains
/// @require {function} is-length
@function is-size($value) {
@return is-length($value)
or contains("fill" "fit-content" "min-content" "max-content", $value);
}