Skip to content

Instantly share code, notes, and snippets.

@pstonier
Created February 24, 2016 23:29
Show Gist options
  • Save pstonier/3150e4e272effc2d5a01 to your computer and use it in GitHub Desktop.
Save pstonier/3150e4e272effc2d5a01 to your computer and use it in GitHub Desktop.
$column: 90px;
$gutter: 10px;
$grid-columns: 12;
$max-width: 1100px;
$first-breakpoint-value: 400px;
$second-breakpoint-value: 835px;
$third-breakpoint-value: 1100px;
// Covers 0-399px wide screen size. 2 column grid
$small-screen: new-breakpoint(max-width em($first-breakpoint-value — 1) 2);
// Covers 400-835px wide screen size. 4 column grid
$medium-screen: new-breakpoint(min-width em($first-breakpoint-value) max-width em($second-breakpoint-value) 4);
// Covers 836-1099px wide screen size. 8 column grid
$large-screen: new-breakpoint(min-width em($second-breakpoint-value + 1) max-width em($third-breakpoint-value — 1) 8);
// Covers 1100px and up wide screen size. 12 column grid (default grid size)
$xl-screen: new-breakpoint(min-width em($third-breakpoint-value));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment