Clearing stylesheet

Please post the URLs to pages, where you've made a CMSimple template available for download

Moderator: mikey

Post Reply
Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Clearing stylesheet

Post by Tata » Fri Feb 16, 2018 9:16 pm

I have made a template and then some copies of it. The I have derived a couple of new templates from the copies. Instead of writing new stylesheets from scratch, I made only some changes in new templates. Now I can't remember all changes made and there are many redundant classes/IDs there. The templates work fine but the remnants make them needless big.
There are many application on the internet promising effective scanning and removing unnecessary selectors from stylesheets. But - in reality - none of them makes what I expect.
Does anybody know a tool for such inspection/cleaning?
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Clearing stylesheet

Post by frase » Sat Feb 17, 2018 9:40 am

Wenn du noch einen alten Firefox hast (nicht Quantum!), dann könnte das Plugin Dust-Me Selectors nützlich sein.
Beschreibung hier.

Eine bessere Möglichkeit habe ich bisher noch nicht entdeckt.
Außer: Handarbeit ;-)

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Clearing stylesheet

Post by Tata » Sat Feb 17, 2018 9:54 am

Ja, das habe ich auch gefunden. Leider habe ich FF Quantum installiert.
Ich habe nun aus 3 fertigen Templates alle class/id in eine excel Tabelle in 3 Spalten gespeichert und logisch anordnen und in stylesheet.css Dateien Schritt-nach-Schritt vergleicht. Scheint gut gelaufen.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Clearing stylesheet

Post by frase » Sat Feb 17, 2018 10:03 am

Vielleicht für Chrome:
https://cscheng.info/2016/05/06/quick-w ... tools.html
(unten: Web Page Performance audit - funktioniert bei mir nicht)

Post Reply