Gerillass
v2.1.0Type: Function
isGutter();
True for anything that can sit where a CSS length is expected: a number, a calculation, or a CSS function such as var().
Arguments
| Name | Type | Description |
|---|---|---|
$value | value | Accepts any value. |
Examples
Accepting var() and calc() where a length is expected.
@mixin stack($gap) {
@if not isGutter($gap) {
@error "`#{$gap}` cannot be used as a gap.";
}
display: grid;
gap: $gap;
}
.stack {
@include stack(var(--gap));
}.stack {
display: grid;
gap: var(--gap);
}