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
mapDeepGet();
Reads a value out of a nested map by following a chain of keys.
Arguments
| Name | Type | Description |
|---|---|---|
$map | map | Accepts a map. |
$keys… | string | Accepts one key per level of nesting. |
Examples
Reading two values out of one of the library's own maps.
.tablet-frame {
width: mapDeepGet($map-for-tablets, "iPadPro", "width");
height: mapDeepGet($map-for-tablets, "iPadPro", "height");
}.tablet-frame {
width: 1024px;
height: 1366px;
}