Skip to content

Commit

Permalink
Updated .offset to fix for percentage based layouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwbm committed Nov 18, 2011
1 parent ab1fd7a commit 71e17a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stylesheets/less/grid.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ body {
margin: 0 @total-width*((@gutter-width*.5)/@_gridsystem-width);
}
.offset(@offset:1) {
margin-left: (@gutter-width+@column-width)*@offset + @total-width*((@gutter-width*.5)/@_gridsystem-width);
margin-left: @total-width*(((@gutter-width+@column-width)*@offset) / @_gridsystem-width) + @total-width*((@gutter-width*.5)/@_gridsystem-width);
}

// The micro clearfix http://nicolasgallagher.com/micro-clearfix-hack/
Expand Down

0 comments on commit 71e17a0

Please sign in to comment.