无法在Magento CE 1.9中编译rwd skin SCSS [英] Can't compile rwd skin SCSS in Magento CE 1.9

查看:71
本文介绍了无法在Magento CE 1.9中编译rwd skin SCSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试根据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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆