Gerillass 3.0.0 is out. One gradient mixin replaces two, and text-gradient takes its colours first, so read the migration guide before you upgrade.
Gerillass
v3.0.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;
}