无法在Magento CE 1.9中编译rwd皮肤SCSS

Tom*_*fin 10 sass magento magento-1.9 compass

我试图根据rwdCE 1.9/EE 1.14中提供的皮肤创建Magento皮肤.但是,当我尝试编译SCSS时(在干净安装,删除文件后/skin/frontend/rwd/default/css),我收到以下错误:

$ compass compile scss
    write css/madisonisland-ie8.css
    write css/madisonisland.css
    write css/scaffold-forms.css
    error scss/styles-ie8.scss (Line 541 of scss/core/_common.scss: Invalid CSS after "a:not(": expected ")", was "".button")")
Sass::SyntaxError on line ["541"] of /var/www/development/magento-mirror/skin/frontend/rwd/default/scss/core/_common.scss: Invalid CSS after "a:not(": expected ")", was "".button")"
Run with --trace to see the full backtrace
Run Code Online (Sandbox Code Playgroud)

第541行scss/core/_common.scss是:

a:not(".button") {
Run Code Online (Sandbox Code Playgroud)

如果我删除周围的引号.button- 它会成功编译.但是,由于这是Magento的全新安装,我是否真的需要编辑文件才能让它们编译?我可能错过了指南针中的配置设置吗?

谢谢

小智 6

我也经历过与Tom Griffin完全相同的问题 - 用rwd/default作为父母创建一个新的custompackage/customtheme.

将core/_common.scss复制到我的customtheme文件夹中并根据Tom的初始消息删除引号可以解决问题并允许指南针正确编译.

Magento运送无法编译的无效SCSS文件非常糟糕.当第一次学习SASS和Compass时,当然没有帮助我!

正如汤姆所假设的那样,它可能是Magento主题开发者所拥有的SASS/Compass版本或设置.我正在使用SASS 3.4.1和Compass 1.0.0.

谢谢

汤姆


小智 6

打开scss/core/_common.scss并编辑第541行只删除".button"中的引号

a:not(.button) {
Run Code Online (Sandbox Code Playgroud)