Skip to content

Commit

Permalink
fixing tylertate#17
Browse files Browse the repository at this point in the history
  • Loading branch information
slafs committed Oct 14, 2011
1 parent f2eee5c commit 6179aba
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions stylesheets/scss/grid.scss
Expand Up @@ -13,21 +13,33 @@ $_gridsystem-width: ($column-width*$columns) + ($gutter-width*$columns);
// Set $total-width to 100% for a fluid layout
$total-width: $_gridsystem-width;

@mixin clearfix() {
*zoom:1;

&:before,
&:after {
content:"";
display:table;
}
&:after {
clear:both;
}
}

//////////
// GRID //
//////////

body {
width: 100%;
.clearfix();
@include clearfix();
}

@mixin row($columns:$columns) {
display: inline-block;
width: $total-width*(($gutter-width + $_gridsystem-width)/$_gridsystem-width);
margin: 0 $total-width*((($gutter-width*.5)/$_gridsystem-width)*-1);
.clearfix();
@include clearfix();
}
@mixin column($x,$columns:$columns) {
display: inline;
Expand All @@ -40,15 +52,3 @@ body {
}

// The micro clearfix http://nicolasgallagher.com/micro-clearfix-hack/
@mixin clearfix() {
*zoom:1;

&:before,
&:after {
content:"";
display:table;
}
&:after {
clear:both;
}
}

0 comments on commit 6179aba

Please sign in to comment.