1 | // Internal function to turn maps into its negative variant.
|
2 | // It prefixes the keys with `n` and makes the value negative.
|
3 | @function negativify-map($map) {
|
4 | $result: ();
|
5 | @each $key, $value in $map {
|
6 | @if $key != 0 {
|
7 | $result: map-merge($result, ("n" + $key: (-$value)));
|
8 | }
|
9 | }
|
10 | @return $result;
|
11 | }
|