Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

hamburger-animation() not working: No items for 'nth' #1

Closed
smichaelsen opened this issue Apr 1, 2015 · 1 comment
Closed

hamburger-animation() not working: No items for 'nth' #1

smichaelsen opened this issue Apr 1, 2015 · 1 comment
Labels

Comments

@smichaelsen
Copy link

hamburger-generator() work great but when I use hamburger-animation() I get the following error on the console:

Error: List index is 1 but list has no items for `nth'
    on line 68 of project/sass/lib/_hamburger-icon.scss, in `hamburger-animation'
    from line 37 of project/sass/style.scss
    from line 11 of project/sass/main.scss
  Use --trace for backtrace.
Warning: Exited with error code 65 Use --force to continue.

This is how I call it:

.menu-icon {
  span {
    @include hamburger-generator($_width, $_thickness, $_gap, $color: $_color, $timing-function: linear);
  }
  float: left;
  margin-top: rem-calc(12);
}
nav.open .menu-icon span {
  @include hamburger-animation();
}

When I patch the hamburger-animation() mixin so that I can set $width and $gutter explicitly per argument instead of getting them from $hamburger-settings everything is fine, but it was better if your solution worked.

@mrmlnc mrmlnc added the bug label Apr 1, 2015
@mrmlnc
Copy link
Owner

mrmlnc commented Apr 1, 2015

This problem is specific to the official compiler. When using libSass it does not arise. I changed the declaration of global variables. Aaaaaaand It works!

@mrmlnc mrmlnc closed this as completed in 8bba1e2 Apr 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants