Page 1 of 1

Clearing stylesheet

Posted: Fri Feb 16, 2018 9:16 pm
by Tata
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?

Re: Clearing stylesheet

Posted: Sat Feb 17, 2018 9:40 am
by frase
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 ;-)

Re: Clearing stylesheet

Posted: Sat Feb 17, 2018 9:54 am
by Tata
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.

Re: Clearing stylesheet

Posted: Sat Feb 17, 2018 10:03 am
by frase
Vielleicht für Chrome:
https://cscheng.info/2016/05/06/quick-w ... tools.html
(unten: Web Page Performance audit - funktioniert bei mir nicht)