Ruby on Rails Thursday, December 7, 2017

Seems that the css on the specific page takes precedence over your application.scss.

In order to verify this you can add an element with an id in your specific page, something like <a id="page_test">Test</a>, and add css for it in your application.scss, something like #page_test { color: red; }.
If that does not work, something happens and your page does not load application.scss and we need more info to help.
If that works then you are probably not selecting the correct element, or the page selectors are heavier than what you have described.

Also, use your browser's inspecting tool, in Chrome right-click and inspect element, then select your element that you want to style and see what rules are applied and if your rules are there.

There might be other issues but try these first and see what they do.

If you still have that issues please add code for your application.scss and template, and we'll see from there.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8EzfWpzkSoGZHXfbkpVH3qZYahbGrsjbN%2BzoX8arzLMBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment