Rails – Changing the attributes of the flash notice
Some of the apps I do make a lot of use of the Rails flash notices. The default text attributes don’t make the notice stick out enough. I wanted to use a yellow background to highlight any notices.
Using the Inspect tool in chrome, I found that the controlling CSS was in assets/scaffolds.scss. In my case it happened to be around line 39
Look for #notice. The only attibute was color: green;. I changed that to add a yellow background color as follows
Now the text is in green with a yellow highlight behind it.
- Why I don’t like to use background images on websites
- Shading Cells in Ruby depending on the contents of the cell
- Ruby on Rails – Shading cells depending on the value of the cell
- Responsive pages with Artisteer / Ruby
- Modifying your Blogger template with CSS.
- JCE Editor – Fixing readability caused by a background image in the editor
- Artisteer templates with Ruby on Rails – Header and graphics not showing – solution
- Adding icons for editing, deleting and saving records in Ruby on Rails