Can't compile rwd skin SCSS in Magento CE 1.9

前端 未结 3 1127
执念已碎
执念已碎 2021-02-06 00:33

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, aft

相关标签:
3条回答
  • 2021-02-06 00:54

    Open scss/core/_common.scss and edit line 541 only remove quotes from ".button"

    a:not(.button) {
    
    0 讨论(0)
  • 2021-02-06 01:06

    This is a compatibility issue with compass. When the Magento 1.9 rwd theme was shipped, the latest version of compass was 0.12.6 which compiled correctly. I have at least tested with 1.12.3 and had no problems compiling. I suspect this will be fixed in the next release since the developers will have been compiling on a later version of compass as they came out. Removing the quotes will achieve your desired result and compiles correctly under the 1.0.0 & 1.0.1 versions at least. This really is more of a compass compatibility issue than a Magento core bug but I am sure it will be taken care of soon.

    0 讨论(0)
  • 2021-02-06 01:08

    I too experienced this issue while doing exactly the same as Tom Griffin - creating a new custompackage/customtheme with rwd/default as the parent.

    Copying core/_common.scss into my customtheme folder and removing the quotes as per Tom's initial message fixes the issue and allows compass to compile correctly.

    It's quite poor that Magento is shipping with invalid SCSS files which don't compile. Certainly hasn't helped me when learning SASS and Compass for the first time!

    As Tom postulated perhaps it's a SASS/Compass version or setting which the Magento theme developers have. I am using SASS 3.4.1 and Compass 1.0.0.

    Thanks

    Tom

    0 讨论(0)
提交回复
热议问题