rails/sass-rails — Issue #72: error in mixin with 3.1.5
Author: kaluznyo
Created: 2011-11-21 10:14:19+00:00
State: open

my SASS code :

```
@mixin theme($theme, $color1, $color2, $color3, $color4, $color5, $color6) {
#header.#{$theme} {
background: $color1;
h1 { color: $color2; }
h1 span { color: $color3; }
#account { color: $color4; }
#account a { color: $color3; }
#account a.current { color: $color2; }
#account a:hover { background: $color5; color: $color1; }
ul#nav li { background-color: $color6; }
}
.theme.#{$theme} {
background-color: $color1;
.color.two { background-color: $color5; }
.color.three { background-color: $color6; }
}
}

@include theme(black, #000, #fff, #999, #666, #efefef, #666);
@include theme(blue, #036, #fc0, #fff, #dedede, #1d64ad, #1a4f85);
@include theme(pink, #ab205f, #98cbe9, #fff, #dedede, #e96ea5, #e44c90);
@include theme(green, #cae9c6, #000, #5a9e6c, #5a9e6c, #1e5a28, #437c56);
@include theme(brown, #ecbc82, #692201, #d2691e, #CD853F, #d2691e, #a0522d);
```

And since sass-rails 3.1.5, in production, I have an error :

Sass::SyntaxError: Invalid CSS after "#header.": expected class name, was "#000"

Works fine with 3.1.4

I use ruby 1.9.2 and rails 3.1.1 (same on rails 3.1.2 and 3.1.3)