无法在Magento CE 1.9中编译rwd skin SCSS [英] Can't compile rwd skin SCSS in Magento CE 1.9
问题描述
我正在尝试根据CE 1.9/EE 1.14中提供的rwd
外观创建Magento外观.但是,当我尝试编译SCSS时(在全新安装中,删除/skin/frontend/rwd/default/css
中的文件后),出现以下错误:
I am attempting to create a Magento skin based off of the rwd
skin provided in CE 1.9 / EE 1.14. However when I attempt to compile the SCSS (on a clean install, after deleting the files in /skin/frontend/rwd/default/css
), I get the following error:
$ 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
scss/core/_common.scss
中的第541行是:
a:not(".button") {
如果我从.button
中删除了周围的引号-它会成功编译.但是,由于这是Magento的全新安装,是否真的需要编辑文件才能进行编译?我错过的指南针中可以有一个配置设置吗?
And if I remove the surrounding quotes from .button
- it compiles successfully. However, as this is a fresh install of Magento, should I really need to be editing files in order to get them to compile? Could there be a config setting in compass I have missed etc?
谢谢
推荐答案
打开scss/core/_common.scss并编辑第541行,仅删除".button"中的引号.
Open scss/core/_common.scss and edit line 541 only remove quotes from ".button"
a:not(.button) {
这篇关于无法在Magento CE 1.9中编译rwd skin SCSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!