Skip to content

Commit

Permalink
Update _process-collection.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
woodcox committed Apr 15, 2024
1 parent a8e3ea0 commit f77887d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/generator/workers/_process-collection.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,17 @@


@mixin process-collection($collection, $prefix, $selector, $is-breakpoint) {
@debug $collection;
@debug 'collection:' $collection;
@if type-of($collection) == 'list' {
// Process each item in the list
@each $map in $collection {

@debug 'map:' $map
$converted-map: (); // Initialize an empty map
@for $i from 1 through length($map) { // Iterate through the list
$key: nth-or-null($map, $i); // Get the key
$value: nth-or-null($map, $i); // Get the value
@debug 'key:' $key
$value: nth-or-null($map, $i); // Get the value
@debug 'value:' $value

$converted-map: map.merge($converted-map, ($key: $value)); // Add key-value pair to the map
}
Expand Down

0 comments on commit f77887d

Please sign in to comment.