CGExtensions cgjs_render css problem

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
timdebuurman
Power Poster
Power Poster
Posts: 891
Joined: Sun Nov 06, 2011 8:15 pm
Location: Deventer, Netherlands

CGExtensions cgjs_render css problem

Post by timdebuurman »

Hi,

I found the cgjs_render possibilities and started testing with it.
Beside this is a great feature to combine and minimalize css and javascript, I come acress a weird thing I can't find a solution for.

This feature strips extra spaces, what normally is good.
But now I noticed that some of my CSS was not working anymore.
After some searching and comparing I saw the cause:

In CSS I also use the calc() method for some styling.
Appearently the cgjs function strips away the space in my code and the browser does not accept it anymore.

In example:

Code: Select all

padding-top: calc(50% - 30px);
becomes:

Code: Select all

padding-top: calc(50%-30px);
Can some-one thinks of a solution?
Or do I have to inform Calguy in the forge about this?

grts Tim
NextDoorMedia - Online Marketing Partner
https://www.nextdoormedia.nl
User avatar
timdebuurman
Power Poster
Power Poster
Posts: 891
Joined: Sun Nov 06, 2011 8:15 pm
Location: Deventer, Netherlands

Re: CGExtensions cgjs_render css problem

Post by timdebuurman »

Found out that rendered CSS also strips all single spaces.
I made a bug-report in the forge about this.
NextDoorMedia - Online Marketing Partner
https://www.nextdoormedia.nl
Post Reply

Return to “Modules/Add-Ons”