Gerillass
v2.1.0Type: Function
validateLength();
Returns the value if it is a length or one of auto, inherit, initial, 0.
Arguments
| Name | Type | Description |
|---|---|---|
$value | number (with unit) | Accepts a length with a unit, or auto, inherit, initial, 0. |
Examples
Validating a length argument in a mixin of your own.
@mixin inset($amount) {
padding: validateLength($amount);
}
.panel {
@include inset(2rem);
}.panel {
padding: 2rem;
}