Skip to content

Commit

Permalink
fix: create column logic for offset
Browse files Browse the repository at this point in the history
  • Loading branch information
cdbenj committed Mar 29, 2021
1 parent dbb0cd5 commit fd17aea
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/global/scss/tools/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,19 @@
@include breakpoint($breakpoint) {
flex: 0 0 percentage($size / $grid-columns);
max-width: percentage($size / $grid-columns);
}

@if ($offset) {
margin-left: percentage($offset / $grid-columns);
}
}

} @else {
flex: 0 0 percentage($size / $grid-columns);
max-width: percentage($size / $grid-columns);
}

@if ($offset) {
margin-left: percentage($offset / $grid-columns);
@if ($offset) {
margin-left: percentage($offset / $grid-columns);
}
}
}

Expand Down

0 comments on commit fd17aea

Please sign in to comment.