added rss feed in footer
[theme-danix.xyz.git] / assets / sass / bourbon / bourbon / validators / _is-length.scss
1 @charset "UTF-8";
2
3 /// Checks for a valid CSS length.
4 ///
5 /// @argument {string} $value
6 ///
7 /// @return {boolean}
8 ///
9 /// @access private
10
11 @function _is-length($value) {
12 @return type-of($value) != "null"
13 and (
14 str-slice($value + "", 1, 4) == "calc"
15 or str-slice($value + "", 1, 3) == "var"
16 or str-slice($value + "", 1, 3) == "env"
17 or index(auto inherit initial 0, $value)
18 or (type-of($value) == "number" and not(unitless($value)))
19 );
20 }