2014-11-03 98 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.