Permalink
Browse files

Add decimal-columns warning

  • Loading branch information...
1 parent c16c8ce commit 42cdd6f67ab13454302ce54b4209696bf03c68a5 @mirisuzanne mirisuzanne committed Aug 13, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 sass/susy/_functions.scss
@@ -18,6 +18,10 @@ $browser-default-font-size-pt : 12pt;
@function columns-width(
$columns : $total-columns
) {
+ @if round($columns) != $columns {
+ @warn "Susy works best with integer column-spans.
+ For partial-columns, you may need to finesse the math by hand using functions directly.";
+ }
@return ($columns * $column-width) + (if($columns >= 1, ceil($columns - 1), 0) * $gutter-width);
}

0 comments on commit 42cdd6f

Please sign in to comment.