Permalink
Browse files

Improve decimal math slightly

  • Loading branch information...
1 parent 5c8ecf9 commit c16c8ce1b6d472dbbc3b7bfca7d5fb1636bb74e0 Eric Meyer committed Aug 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 sass/susy/_functions.scss
View
4 sass/susy/_functions.scss
@@ -18,7 +18,7 @@ $browser-default-font-size-pt : 12pt;
@function columns-width(
$columns : $total-columns
) {
- @return ($columns * $column-width) + (ceil($columns - 1) * $gutter-width);
+ @return ($columns * $column-width) + (if($columns >= 1, ceil($columns - 1), 0) * $gutter-width);
}
// Return the full outer width of a Container element.
@@ -80,7 +80,7 @@ $browser-default-font-size-pt : 12pt;
$columns,
$context : $total-columns
) {
- @return columns($columns, $context) + gutter($context);
+ @return columns($columns, $context) + if($columns >= 1, gutter($context), 0);
}
// Accept a list including column-count and (optional) position.

0 comments on commit c16c8ce

Please sign in to comment.