soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
314 stars 29 forks source link

Add option to make classes page/template specific or global #755

Open Spellhammer opened 4 years ago

Spellhammer commented 4 years ago

Posted on behalf of Tobias Alriksson:

Add an option for each class/selector added in Oxygen to be output on a specific page, template, or globally in Universal.css

Currently all classes are output in Universal.css, resulting in unneeded classes being output on some pages.

wpsumo commented 4 years ago

Oxygen Styling mangement V3.0! 🎉

This to not load styling for classes globally if not needed globally. CSS Optimization which would prevent loading unused css.

Worth to mention is that using classes is not only handy to prevent create duplicated styling to same elements. But it's also the oxygen way of copy and paste styling to another element.

But with this setup as of today we create a huge global file. Which contains unused css for certain templates and pages.

Would happily see this feature being improved either by default adding it to it's page custom-class.css file at the template you´re adding it in.

From styling management I can activate classes to other templates or global which would trigger it's style in preferred places so I dont have to rewrite or restyle classes in different templates.

Other relevant performance tickets:

18

761

770