mirror of
https://github.com/scratchfoundation/scratchx.git
synced 2024-11-25 17:18:21 -05:00
12 lines
314 B
SCSS
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))));
|
||
|
}
|