문제

I have a SASS file _button-map-mixin.css that starts with the following associative array:

$cache: (
    color: (),
    font-size: (),
    line-height: (),
    background-color: (),
    font-family: ()
);

When I compile the file, I get the following error:

Invalid CSS after " color": expected ")", was ": (),"

I don't understand - isn't this valid syntax?

It almost seems like the compiler doesn't recognize an associative array - but I'm using SASS version 3.3.6 (and Compass 0.12.6).

도움이 되었습니까?

해결책

Use sass 3.3.7 and compass 1.0 (it's in alpha gem install compass --pre) If you got wdm related error then also install wdm(require "Ruby Development Kit") gem. If you keep your gem list clean it will be easier to catch dependency errors. Run gem list --local and uninstall all previous versions of compass and sass if you don't need them.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top