I am currently developing a simple blog application in Rails. I am using two different layouts, one for my articles pages (application.html.erb) and another for my static pages (welcome.html.erb) such as home etc.
The welcome layout requires the following styling:
body {
padding-top: 50px;
padding-bottom: 20px;
}
These particular properties mess up the other pages using the articles layout.
1.Is there a work around for this kind of situation where you need different styles for the same type of elements present in different layouts/pages?
2.What is the point of having controller specific stylesheets e.g, welcome.css.scss and article.css.scss, if they are all compile into one single application.css file?
I am trying to get a better understanding of the Rails assets pipeline. I am using rails 4.1.1 and ruby 2.1.1p76
Thank you very much