2014-11-03 99 views
1

我用 sass --scss --interactivescss --interactive携手进入 >> $x: 3px; 我得到的错误: SyntaxError: Invalid CSS after "3px": expected expression (e.g. 1px, bold), was ";"SassScript交互shell没有与SCSS语法

有谁知道我做错了吗?

谢谢。

PS:Sass安装使用:sudo gem install scss。然后chmod -R 755 /var/lib/gems,其次是chmod 755 /usr/local/bin/{scss,sass}

+0

看来,交互只需要类似的编程语言表达,例如:'的3px + 3px':它不处理CSS选择器语法。所以你必须删除';',像'width:3px'这样的东西也不行。 – 2014-11-03 08:33:17

回答

1

交互shell只需要类似的编程语言表达,例如:

3px + 3px 

它不处理CSS选择器或属性/值语法。

所以,你必须删除;写:

$x: 3px 

和类似的东西width: 3px不会工作。

这在中提到:http://thesassway.com/intermediate/interactive-sass-having-fun-on-the-terminal

Sass Script is a small subset of the Sass language. It mostly includes the mathematical parts of Sass and functions. You can't use Sass features like mixins or variables.