Reputation: 510
I am a junior developer building my first web application for a client.
The owner is not content with the standard colours of the bootstrap buttons on the home.html.erb and wants a flamboyant colour of pink on one button particularly.
How do I style a twitter bootstrap button with hexadecimal colour using rails 4.2.4
What would the syntax be and what CSS folder from my below list would I use for such:
bootstrap_and_customization.css.scss,
home.css.scss,
pages.scss
Upvotes: 1
Views: 1007
Reputation: 1716
You can just add it to the application.css|css.scss
So if you added a class of btn btn-pink
to the button
. I recommend that you add btn
class so you will inherit the basic styling.
.btn-pink{
color: #FFFFFF; // whatever you want
background-color: ##FF69B4; // whatever you want
}
Upvotes: 2