Mercurial > nebulaweb3
annotate default/assets/scss/vendors/bourbon/validators/_is-length.scss @ 0:1d038bc9b3d2 default tip
Up:default
author | Liny <dev@neowd.com> |
---|---|
date | Sat, 31 May 2025 09:21:51 +0800 |
parents | |
children |
rev | line source |
---|---|
0 | 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" and (str-slice($value + "", 1, 4) == "calc" | |
13 or index(auto inherit initial 0, $value) | |
14 or (type-of($value) == "number" and not(unitless($value)))); | |
15 } |