Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Black Mirror committed Mar 27, 2018
1 parent ee972bd commit fe1e978
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions scss/grid-system/grid-system.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@
}

@mixin grid-system($columns: $columns-default, $gutter: $gutter-default) {
$margin-left: ceil($gutter / -2);
$margin-right: floor($gutter / -2);

$padding-left: ceil($gutter / 2);
$padding-right: floor($gutter / 2);

// Grid system
// --------------------------------------------------
%container-base {
Expand Down
10 changes: 6 additions & 4 deletions scss/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ $columns-breakpoints: array-concat((
xs: 576px // extra small devices
), $common-breakpoints) !default; // columns-breakpoints used for media queries and column classes sizes & positions

$margin-left: ceil($gutter / -2);
$margin-right: floor($gutter / -2);
$gutter: $gutter-default;

$padding-left: ceil($gutter / 2);
$padding-right: floor($gutter / 2);
$margin-left: ceil($gutter / -2) !default;
$margin-right: floor($gutter / -2) !default;

$padding-left: ceil($gutter / 2) !default;
$padding-right: floor($gutter / 2) !default;

0 comments on commit fe1e978

Please sign in to comment.