mojotech / sass2stylus

Kewl
http://sass2stylus.com/
79 stars 18 forks source link

Proper lists in `for` #78

Closed kizu closed 10 years ago

kizu commented 10 years ago

This example from Sass docs is not converted properly:

@each $animal in puma, sea-slug, egret, salamander {
  .#{$animal}-icon {
    width: 10px;
  }
}

right now gives

for $animal in puma, sea-slug, egret, salamander
  .{$animal}-icon
    width: 10px

which returns an error as Stylus do not understand the comma list inside for, so we need to convert it to a proper Stylus list, like this one:

for $animal in (puma sea-slug egret salamander)
  .{$animal}-icon
    width: 10px
samccone commented 10 years ago

thanks @kizu