This commit is contained in:
Marek Lesko
2025-10-22 14:44:25 +00:00
parent 498d2c7ade
commit 9d644a9b79
275 changed files with 35799 additions and 35712 deletions

View File

@@ -1,25 +1,25 @@
@use "sass:map";
// It makes the value negative.
@function negativify-map($map) {
$result: ();
@each $key, $value in $map {
@if $key !=0 {
$result: map.merge($result, ("-" + $key: (-$value)));
}
}
@return $result;
}
// It allows to combine multiple maps together.
@function map-collect($maps...) {
$collection: ();
@each $map in $maps {
$collection: map.merge($collection, $map);
}
@return $collection;
}
@use "sass:map";
// It makes the value negative.
@function negativify-map($map) {
$result: ();
@each $key, $value in $map {
@if $key !=0 {
$result: map.merge($result, ("-" + $key: (-$value)));
}
}
@return $result;
}
// It allows to combine multiple maps together.
@function map-collect($maps...) {
$collection: ();
@each $map in $maps {
$collection: map.merge($collection, $map);
}
@return $collection;
}