Skip to content

Commit

Permalink
fix(grid): center grid at largest breakpoint (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack authored and alisonjoseph committed May 4, 2018
1 parent 96d6cca commit 09d9d5a
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions src/globals/grid/classic/_classic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@
$max-width: 1600px;
$columns: 12;

$grid-breakpoints: (sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1600px);
$gutter-breakpoints: (xs: 5px, sm: 10px);
$grid-gutter-breakpoints: (xs: 3%, sm: 5%);
$grid-breakpoints: (
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1600px
);
$gutter-breakpoints: (
xs: 5px,
sm: 10px
);
$grid-gutter-breakpoints: (
xs: 3%,
sm: 5%
);

@mixin grid {
.#{$prefix}--grid {
Expand All @@ -21,6 +33,10 @@ $grid-gutter-breakpoints: (xs: 3%, sm: 5%);
padding-right: gutter('sm');
}

@media (min-width: breakpoint('xxl')) {
margin: 0 auto;
}

&.max {
max-width: $max-width;
}
Expand Down

0 comments on commit 09d9d5a

Please sign in to comment.