Skip to content

Commit

Permalink
refactor: Update SCSS loop to use local variable for grid column count
Browse files Browse the repository at this point in the history
  • Loading branch information
dlnr committed Dec 13, 2024
1 parent 39acbcf commit 74af110
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/css/src/components/breakout/breakout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $ams-breakout-row-span-max: 4;
@include ams-grid__cell--span-all;
}

@for $i from 1 through grid.$ams-grid-column-count {
@for $i from 1 through $ams-grid-column-count {
.ams-breakout__cell--col-span-#{$i} {
@include ams-grid__cell--span($i);
}
Expand All @@ -83,7 +83,7 @@ $ams-breakout-row-span-max: 4;
}

@media screen and (min-width: $ams-breakpoint-medium) {
@for $i from 1 through grid.$ams-grid-column-count {
@for $i from 1 through $ams-grid-column-count {
.ams-breakout__cell--col-span-#{$i}-medium {
@include ams-grid__cell--span-medium($i);
}
Expand All @@ -95,7 +95,7 @@ $ams-breakout-row-span-max: 4;
}

@media screen and (min-width: $ams-breakpoint-wide) {
@for $i from 1 through grid.$ams-grid-column-count {
@for $i from 1 through $ams-grid-column-count {
.ams-breakout__cell--col-span-#{$i}-wide {
@include ams-grid__cell--span-wide($i);
}
Expand Down

0 comments on commit 74af110

Please sign in to comment.