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 f75f899 commit 7be717a
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions src/generator/workers/_process-collection.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,18 @@
@debug 'css-var:' $use-css-vars;
$vars-key: '';
}
}
$selector: _n.get-namespace('classes') + $selector;

$selector: _n.get-namespace('classes') + $selector;

@if $use-css-vars {
$vars: map-get(_c.$gorko-config, 'css-vars');
$vars-key: map-get($list, 'items');
$items: map-get($vars, $vars-key);
}
@if $use-css-vars {
$vars: map-get(_c.$gorko-config, 'css-vars');
$vars-key: map-get($list, 'items');
$items: map-get($vars, $vars-key);
}

/// It'll only run if $items and $property aren't null. This means it'll ignore the breakpoints and design tokens, for example.
@if $property and $items {
@if $output == 'responsive' {
@include _css.generate-css(
#{$prefix + $selector},
$property,
$items,
$use-css-vars,
$vars-key
);
}

@if $output == 'standard' {
@if not $is-breakpoint {
/// It'll only run if $items and $property aren't null. This means it'll ignore the breakpoints and design tokens, for example.
@if $property and $items {
@if $output == 'responsive' {
@include _css.generate-css(
#{$prefix + $selector},
$property,
Expand All @@ -79,6 +68,18 @@
$vars-key
);
}

@if $output == 'standard' {
@if not $is-breakpoint {
@include _css.generate-css(
#{$prefix + $selector},
$property,
$items,
$use-css-vars,
$vars-key
);
}
}
}
} @else if type-of($collection) == 'map' {
// Process the map
Expand Down

0 comments on commit 7be717a

Please sign in to comment.