Skip to content

Commit

Permalink
refactor(grid): use grid wrap column modifier for no gutter
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybotha committed Apr 18, 2022
1 parent 7762a0c commit e33a528
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions scss/core/tools/mixins/components/grid/_grid-wraps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,6 @@
}


@mixin grid-wrap--no-gutter($classname: $grid-wrap-classname) {
/**
* gutterless grids have all the properties of regular grids, minus any spacing.
*/
.#{$classname}--no-gutter {
@extend %grid-wrap;
margin-inline-start: 0;

& > %grid__item { padding-inline-start: 0;}
}
}


@mixin grid-wrap--center($classname: $grid-wrap-classname) {
/**
* centered grids align grid items centrally without needing to use push or pull
Expand Down Expand Up @@ -183,3 +170,10 @@
& > %grid__item { padding-inline-start: $size;}
}
}

@mixin grid-wrap--no-gutter($classname: $grid-wrap-classname) {
/**
* gutterless grids have all the properties of regular grids, minus any spacing.
*/
@include grid-wrap-gutter-modifier('no-gutter', 0);
}

0 comments on commit e33a528

Please sign in to comment.