Does anyone know of CSS refactoring tools? Ideally, I would load all of my CSS and have the tool intelligently remove redundant declarations, merge classes, etc, without completely munging it all.
+3
A:
see Dust-Me Selectors.
http://www.sitepoint.com/dustmeselectors/
Dust-Me Selectors is a Firefox extension (for v1.5 or later) that finds unused CSS selectors.
It extracts all the selectors from all the stylesheets on the page you're viewing, then analyzes that page to see which of those selectors are not used. The data is then stored so that when testing subsequent pages, selectors can be crossed off the list as they're encountered.
j4y
2009-01-17 01:23:52
Thanks for this, its a gem.
Pickledegg
2009-02-12 10:17:37