greater.than()
The greater.than-any()
function checks whether the given $greater
is greater than any of the given $values
.
$greater
The value of number type.
$values...
The values of number type to compare with a given $greater
.
@function than-any($greater, $values...) {
@each $value in $values {
@if meta.of-type(number, $greater, $value) and $greater > $value {
@return true;
}
}
@return false;
}
Last updated
Was this helpful?