Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks with libsass 3.3 #34

Closed
fspoettel opened this issue Nov 4, 2015 · 1 comment
Closed

Breaks with libsass 3.3 #34

fspoettel opened this issue Nov 4, 2015 · 1 comment
Labels

Comments

@fspoettel
Copy link
Contributor

The list handling in Lib-Sass 3.3.x seems to have changes, resulting in hagrid breaking with the error:

Error: index out of bounds for nth($list, $n)

It seems like the expression md 2/3 is not parsed as a string anymore, which results in the argument being not parsed as a nested list.

        @each $width in $widths {

            @if type-of($width) == number or $width == auto {
                #{$prop}: calculate-width($width);
                $width-detected: true;
            }

            @elseif $width == false {
                $width-detected: true;
            }

            @else {

                // * Warning $width here outputs "md"
               @warn $width;

                $key: nth($width, 1);
                $value: nth($width, 2);

                @if type-of($key) == number {
                    $value: nth($width, 1);
                    $key: nth($width, 2);
                }

                $bp: parse-breakpoint($key);

                @if $bp != false {
                    @include bp(#{$key}) {
                        #{$prop}: calculate-width($value);
                    }
                }
                @else {
                    @warn "You are trying to assign a width to an unknown, unquoted breakpoint: #{$key}";
                }
            }
@fspoettel fspoettel added the bug label Nov 4, 2015
@fspoettel
Copy link
Contributor Author

@renatocarvalho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant