Skip to content

Instantly share code, notes, and snippets.

@kidpollo
Created December 31, 2012 00:41
Show Gist options
  • Select an option

  • Save kidpollo/4416416 to your computer and use it in GitHub Desktop.

Select an option

Save kidpollo/4416416 to your computer and use it in GitHub Desktop.
Greedy css minimalist css grid system in scss
$columns: 16;
$gutter: 25px;
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
@mixin clearfix {
*zoom: 1;
&:before,
&:after { content: ""; display: table; }
&:after { clear: both; }
}
@mixin row {
@include clearfix;
padding-bottom: $gutter;
&:first-child { padding-top: $gutter; }
}
@mixin column($x: 1, $cols: $columns) {
float: left;
padding-left: $gutter;
width: percentage(1 / $cols * $x);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment