Skip to content

Asymmetrical grid error #594

@flaturtha

Description

@flaturtha

I'm following excellent Zell Liew's examples from his book on Susy to develop my site, specifically trying to set up the asymmetrical grid system. However, despite following (even copy/pasting to ensure I didn't type incorrectly), I'm getting errors any time I define more than one column:

$susy: (
  output: isolate,
  global-box-sizing: border-box,
  debug: (image: show-columns)
  );

$small: (
  columns: 1 1.6857142857,
  gutter: 10/42,
  column-width: 42px,
);

@include layout($small);

I get the following error:

events.js:154
      throw er; // Unhandled 'error' event
      ^
Error: _assets/vendor/bower_components/susy/sass/susy/su/_grid.scss
Error: index out of bounds for `nth($list, $n)`
        on line 75 of _assets/vendor/bower_components/susy/sass/susy/su/_grid.scss
>>       $sub-columns: append($sub-columns, nth($columns, $i));
   -----------------------------------------^

The best I can figure, the error happens when the columns line has more than a single value. With just one (any number) value, it runs but with more than one for an asymmetrical grid, it errors.

I'm trying to recreate the Chapparal layout (http://www.sassmeister.com/gist/zellwk/258589c4035f6da40854) from Zell's book since I think it would work well for my site. But as it stands, I cannot use the asymmetrical grids with Susy.

Any help or hint what I've got set up wrong? I've dug through Google for 2 days trying to find a solution but nada. Thanks for any input that'll get me going again!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions