F
F
fleple2014-05-11 00:42:52
ruby
fleple, 2014-05-11 00:42:52

Sass(3.3.6) compiler not working on ubuntu 12.04 (ruby 1.9.3)

@each $animal, $color, $cursor in (puma, black, default),
                                  (sea-slug, blue, pointer),
                                  (egret, white, move) {
  .#{$animal}-icon {
    background-image: url('/images/#{$animal}.png');
    border: 2px solid $color;
    cursor: $cursor;
  }
}

I took this example from the official documentation, but when compiling it writes an error:
error sass/screen.scss (Line 1: Invalid CSS after "@each $animal": expected "in", was ", $color, $curs...")

Although everything works fine on SassMeister.
I can't figure out what's wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jj_killer, 2014-05-11
@jj_killer

Update sass, you probably have sass 3.2, check: sass --version

F
fleple, 2014-05-11
@fleple

No, everything is correct, I have Sass 3.3.6 (Maptastic Maple).
But I already found the answer - it's all about compasse, it apparently does not support this version yet, and Sass' watcher works so well

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question