Page 1 of 1

v3.0.3.8 Sass support?

Posted: Wed Feb 09, 2022 3:42 pm
by rammi22
Hello,

System: OC v3.0.3.7

As i understand, there is a SASS extension installed out of the box. But when i try to use SASS, the code no executed:

Code: Select all

// custom.scss
body {
    background: blue;
    &.test {
    	background: yellow;
    }
}
...

the assigned HTML:

Code: Select all

...
<body class="text">
...
Expected: body.background = yellow
Actual: body.background = blue

I've found the settting in the admin area:
Image

It's hard to see, if acrive is enabled because of the color, but in the source code the input are enabled.

I'am looking for documentation part about how to use SASS, if not available maybe any link to a tutorial would be helpfull.

Greets

Re: v3.0.3.8 Sass support?

Posted: Sat Feb 12, 2022 11:27 pm
by straightlight
If this issue hasn't been reported on Github Opencart repository already, I would suggest to do so in this case. In the meantime, your topic title states that you're using OC v3.0.3.8 version whereas your first post indicates: 3.0.3.7 . Therefore, if this issue has to be reported on Github Opencart repository, then it would have to be for OC v3.0.3.8 release at this time.

Re: v3.0.3.8 Sass support?

Posted: Wed Feb 16, 2022 1:00 am
by Gergely
rammi22 wrote:
Wed Feb 09, 2022 3:42 pm

Code: Select all

// custom.scss
body {
    background: blue;
    &.test {
    	background: yellow;
    }
}
...

Code: Select all

...
<body class="text">
...
Possibly just a typo? The scss targets body.test, your html has body.text. Though seeing that this topic is almost a week old, you probably have figured that out by now...

Re: v3.0.3.8 Sass support?

Posted: Fri Oct 27, 2023 7:33 pm
by parkookk
Hi, anybody knows how to use SASS in Opencart 3038?
Thanks

Re: v3.0.3.8 Sass support?

Posted: Sat Oct 28, 2023 6:18 pm
by SohBH
Hi, Sass allows you to avoid repetition. Use Live Sass Compiler to compile it.