I''m starting a new Rails project, and I have all of my CSS lumped into a single style sheet. I am guessing this probably is not the best way to keep this organized. Does anyone have any tips on how to keep CSS organized, DRY, and easy to maintain within Rails? The project will likely have 3 or 4 layouts, a consistent look-and- feel across the project, but the different layouts will have their own small differences between them. Thanks in advance-- Jeff Wigal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Probably you should get this question sorted out at http://www.css-discuss.org/ -- sekhar On Mon, Mar 3, 2008 at 1:25 PM, jeff_wigal <jeff-iVP5o1a8NGIeZ1cX+HX059vLeJWuRmrY@public.gmane.org> wrote:> > I''m starting a new Rails project, and I have all of my CSS lumped into > a single style sheet. I am guessing this probably is not the best way > to keep this organized. Does anyone have any tips on how to keep CSS > organized, DRY, and easy to maintain within Rails? > > The project will likely have 3 or 4 layouts, a consistent look-and- > feel across the project, but the different layouts will have their own > small differences between them. > > Thanks in advance-- > > Jeff Wigal > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I like to use: http://blog.airbladesoftware.com/2006/12/11/cssdryer-dry-up-your-css for starters. I also like running my CSS through ERB in the manner of: http://blog.hasmanythrough.com/2007/10/18/simpler-than-dirt-restful-dynamic-css Also, have a look at: http://nubyonrails.com/articles/dynamic-css --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---