Skip to content

Commit

Permalink
Fix BS4 grid after their grid updates
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs committed Mar 11, 2016
1 parent 856a482 commit 5551dde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion assets/styles/common/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Grid settings
$enable-flex: true;
$main-sm-columns: 12;
$sidebar-sm-columns: 4;

Expand Down
9 changes: 3 additions & 6 deletions assets/styles/components/_grid.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
// Grid system
.main {
@include make-col();
@include make-col($main-sm-columns, $main-sm-columns, $grid-gutter-width);

@include media-breakpoint-up(sm) {
@include make-col-span($main-sm-columns);
.sidebar-primary & {
@include make-col-span($main-sm-columns - $sidebar-sm-columns);
@include make-col($main-sm-columns - $sidebar-sm-columns, $main-sm-columns, $grid-gutter-width);
}
}
}
.sidebar {
@include make-col();

@include media-breakpoint-up(sm) {
@include make-col-span($sidebar-sm-columns);
@include make-col($sidebar-sm-columns, $main-sm-columns, $grid-gutter-width);
}
}

0 comments on commit 5551dde

Please sign in to comment.