Rails css/scss precedence

Ripp3r

New Member
I'm trying to figure out how the css precedence rules work in rails.I have an app where I want to use different css rules for different controllers and if i add some css to one of the css.scss files, it affects all controller pages.admin.css.scss:\[code\]body { background: #fff;}\[/code\]rsv_ps.css.scss\[code\]body { background: url("DSC_1581.JPG") no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://stackoverflow.com/questions/11534109/DSC_1581.JPG', sizingMethod='scale'); -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://stackoverflow.com/questions/11534109/DSC_1581.JPG', sizingMethod='scale')";}\[/code\]If i go to both \[code\]http://localhost:3000/admin\[/code\] or \[code\]http://localhost:3000/rsvps/new\[/code\], they both have the background image. Shouldn't any urls that start with \[code\]http://localhost:3000/admin\[/code\] use the admin.css.scss stylesheet and not use the rsv_ps.css.scss stylesheet?
 
Back
Top