Skip to content

Instantly share code, notes, and snippets.

@granth
Forked from funkaoshi/1kbgrid.sass
Created March 9, 2010 14:42
Show Gist options
  • Save granth/326647 to your computer and use it in GitHub Desktop.
Save granth/326647 to your computer and use it in GitHub Desktop.
// http://1kbgrid.com as a sass file.
@for !i from 1 through !number_of_columns
.grid_#{!i}
width = (!column_width + !gutter_width) * !i - !gutter_width
.column
margin = "0 #{!gutter_width / 2}"
overflow: hidden
float: left
display: inline
.row
width = (!column_width + !gutter_width) * !number_of_columns
margin: 0 auto
overflow: hidden
.row
margin = "0 -#{!gutter_width / 2}"
width: auto
display: inline-block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment