You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
314 B
12 lines
314 B
8 years ago
|
@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))));
|
||
|
}
|