Skip to content

Commit

Permalink
Merge pull request #138 from digitalnsw/fix/hero-banner-padding
Browse files Browse the repository at this point in the history
fix: create column logic for offset
  • Loading branch information
cdbenj authored Mar 29, 2021
2 parents dbb0cd5 + fd17aea commit 9f74e23
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 9f74e23

Please sign in to comment.