Skip to content

Commit

Permalink
Fix breakpoint bug for _grid.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
markteekman committed Mar 5, 2022
1 parent b4a42c9 commit e34a045
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/assets/scss/base/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,17 @@
align-self: end;
}

@include breakpoint(small) {
@for $i from 1 through 12 {
> .small-#{$i} {
grid-column-end: span $i;
}
@for $i from 1 through 12 {
> .small-#{$i} {
grid-column-end: span $i;
}

> .offset-small-#{$i} {
grid-column-start: calc(#{$i} + 1);
}
> .offset-small-#{$i} {
grid-column-start: calc(#{$i} + 1);
}

&.small-grid-#{$i} {
grid-template-columns: repeat(#{$i}, 1fr);
}
&.small-grid-#{$i} {
grid-template-columns: repeat(#{$i}, 1fr);
}
}

Expand Down

0 comments on commit e34a045

Please sign in to comment.