My application is built with Sinatra. I have implemented the sinatra-flash gem to display flash messages if the user fails to select enough items for comparison. While this functionality is working fine, I am having difficulty customizing the styling of these messages. Below is my CSS code snippet:
.warning {
background-color: #f89406;
border-color: #e96506;
color: #ffffff;
}
Here is the corresponding code in the view:
<% if flash[:warning] %>
<div class="warning"><%= flash[:warning] %></div>
<% end %>