Forum

Thread tagged as: Problem, Addons, Feathers

calc() not working with Sass feather

When I add a line like

width: calc(100% - 20px);

to a .scss file the Sass feather no longer compiles to css.
Is that a common issue?
How do I fix that?

Nils Mielke

Nils Mielke 3 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

It looks like the Sass compiler we were using has been discontinued. For now it would probably be better to find a different way to compile your Sass code.

Oh no. That was such a nice thing to have.
Do you have any plans to switch to another compiler or will the Sass feather be discontinued?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Honestly, the Sass feather hasn't been on my radar for a while - so there aren't any active plans.

I'll try to take a look at it and see if it can be swapped to something better. This one looks pretty active: https://github.com/leafo/scssphp

I got the leafo one running on a site that wasn't using the Perch Sass feather.
Seems to do okay. I am not a pro in such things (as you might have guessed :). Working on it, though.
The Sass feather was very convenient to get started with.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, I like it too. I'll see if I can find some time to look at it.

That would be awesome.
Thanks, Drew.