Gerillass
v2.1.0Type: Function
isNumber();
Returns the value if it is a number.
Arguments
| Name | Type | Description |
|---|---|---|
$value | value | Accepts any value. |
Examples
Validating a numeric argument in a mixin of your own.
@mixin z($layer) {
position: relative;
z-index: isNumber($layer);
}
.modal {
@include z(100);
}.modal {
position: relative;
z-index: 100;
}