Gerillass 2.0.0 is out. It renames every utility function and replaces two mixins with one, so read the migration guide before you upgrade.
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;
}