Skip to content

Commit

Permalink
fix: adjust breakpoints and offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmonline committed Sep 30, 2019
1 parent 431f737 commit 529b5b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/grid/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { media, breakpoints, containers, offsets } from '../spec';
import { media, breakpoints, containers } from '../spec';

const styles = {
grid: {
Expand All @@ -22,7 +22,7 @@ Object.keys(breakpoints).forEach(breakpoint => {
} else {
styles.grid[media(breakpoint)] = {
width: containers[breakpoint],
padding: [0, offsets[breakpoint]],
padding: [0, 20],
};
}
});
Expand Down
17 changes: 4 additions & 13 deletions src/spec.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export const breakpoints = {
// The grid is mobile first so xs is the default, hence no breakpoint
xs: false,
sm: 768,
md: 992,
lg: 1440,
xl: 1680,
sm: 760,
md: 976,
lg: 1292,
xl: 1600,
};

export const media = size => {
Expand All @@ -21,15 +21,6 @@ export const columns = 12;

export const gutter = 20;

export const offsets = {
// Used for Grid's outer padding
xs: false,
sm: 24,
md: 28,
lg: 96,
xl: 60,
};

export const containers = {
xs: false,
sm: breakpoints.sm,
Expand Down

0 comments on commit 529b5b7

Please sign in to comment.