CSSes: a clean CSS slate for your Rails application
Update: CSSes is now a gem! No need to install the plugin for each app.
I’ve updated CSSes to handle a bunch more Rails HTML helpers, so your forms and images and links should all get the proper treatment and their own nicely alphabetized entries in the generated application.css file.
See it in action!
Say you have this view (though let it be known that CSSes scours your helpers, too):
<h1 id="pomp">The Grand Demonstration</h1>
<p class="wing">Super Mario Bros. 3 reference</p>
<%= image_tag('joy.png', :class => 'happy') %>
<%= link_to('Read', {:action => :read, :id => 4}, {:id => 'four'}) %>
<!-- and it works for form tags too -->
Do this:
script/generate csses
And look at that sweet generated application.css:
a {}
a:visited {}
a:hover {}
a:active {}
a#four {}
a#four:visited {}
a#four:hover {}
a#four:active {}
h1 {}
h1#pomp {}
img {}
img.happy {}
p {}
p.wing {}
Get it for yourself:
sudo gem install csses