Skip to content

Instantly share code, notes, and snippets.

@zeevallin
Created November 13, 2012 02:48
Show Gist options
  • Save zeevallin/4063661 to your computer and use it in GitHub Desktop.
Save zeevallin/4063661 to your computer and use it in GitHub Desktop.
Grids with Sass
@for $i from 1 through 12
$iUnitWidth: ($columnWidth + $gutterWidth)
$iMinWidth: ($i) * $iUnitWidth
$iMaxWidth: $iMinWidth + ($iUnitWidth - 1px)
@media (min-width: $iMinWidth) and (max-width: $iMaxWidth)
// ... grid code ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment