Skip to content

Commit

Permalink
cycle to loop over list of maps
Browse files Browse the repository at this point in the history
  • Loading branch information
woodcox authored Apr 15, 2024
1 parent dcc9ade commit df68de8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/generator/workers/_cycle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,22 @@
@mixin cycle($prefix, $is-breakpoint) {
@each $selector, $props in _c.$gorko-config {
@if (meta.type-of($props) == 'map') {
@debug $selector;
@debug $props;
@include _p.process-collection(
$props,
$prefix,
$selector,
$is-breakpoint
);
}
@else if (meta.type-of($props) == 'list') {
@each $prop in $props {
@include _p.process-collection(
$props,
$prefix,
$selector,
$is-breakpoint
);
}
}
}
}

0 comments on commit df68de8

Please sign in to comment.