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

@each multiple assign #394

Closed
matteofigus opened this issue Jun 9, 2014 · 3 comments
Closed

@each multiple assign #394

matteofigus opened this issue Jun 9, 2014 · 3 comments

Comments

@matteofigus
Copy link

http://sass-lang.com/documentation/file.SASS_REFERENCE.html#each-multi-assign

Warning: C:/[...]/file:25: error: expected 'in' keyword in @each directive

@each $name, $value in $icons {
.icon-#{$name}:before {
@extend .icon-font;
content: $value;
}
}

@nmec
Copy link

nmec commented Jun 18, 2014

I am getting the same error with the following:

.tabs {
    @each $slug, $color in (alpha, #babdc7), (bravo, #7c459b), (charlie, #49c8f5) {
        &.#{$slug} {
            border-bottom-color: $color;
        }
    }
}

Output is correct when I run the same through SassMeister.com

@akhleung
Copy link

Thanks for the reports and the link to the docs ... I had assumed that this feature was only for iterating over maps (which LibSass doesn't support yet), but iterating over lists of lists should be fixable in the short term.

@xzyfer
Copy link
Contributor

xzyfer commented Oct 29, 2014

Fixed by #571

@xzyfer xzyfer closed this as completed Oct 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants