Skip to content

Instantly share code, notes, and snippets.

@sevos
Created April 24, 2011 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sevos/939495 to your computer and use it in GitHub Desktop.
Save sevos/939495 to your computer and use it in GitHub Desktop.
@import clearfix.sass
$grid_width: 1200px
$grid_glue: 10px
$grid_boxes: 24
=grid-container
+clearfix
padding:
left: 0px
right: 0px
=grid($width)
margin:
left: $grid_glue / 2
right: $grid_glue / 2
width: $grid_width / $grid_boxes * $width - $grid_glue
=first
margin-left: 0px
padding-left: $grid_glue
=last
margin-right: 0px
padding-right: $grid_glue / 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment