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
convertToEm();
Converts a pixel length to em, against a 16px base.
Arguments
| Name | Type | Description |
|---|---|---|
$value | number (with unit) | Accepts a pixel length. |
Examples
Spacing written in px, emitted in em.
.card {
padding: convertToEm(24px);
border-radius: convertToEm(8px);
}.card {
padding: 1.5em;
border-radius: 0.5em;
}