Skip to content

Commit

Permalink
Add a percent-based test case for grid-backgrounds, remove unnecessar…
Browse files Browse the repository at this point in the history
…y 0.001 increment.
  • Loading branch information
chriseppstein committed Apr 16, 2011
1 parent 0a33bc1 commit 8a8d625
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 6 deletions.
Expand Up @@ -56,12 +56,8 @@ $grid-background-force-fluid : false !default;
// $z represents the end of a gutter, equal to $g plus one gutter-width
$z: $g + $gutter;

// make sure we are building towards 100%
@if unit($a) == "%" {
$a: $a + .001;
@if $i == ($total - 1) {
$z: 100%;
}
@if (unit($a) == "%") and ($i == ($total - 1)) {
$z: 100%;
}

// and we add this column/gutter pair to our grid
Expand Down
32 changes: 32 additions & 0 deletions test/fixtures/stylesheets/compass/css/grid_background.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8a8d625

Please sign in to comment.