How to customize Twitter bootstrap while using Rails 3.x? How to customize Twitter bootstrap while using Rails 3.x? ruby-on-rails ruby-on-rails

How to customize Twitter bootstrap while using Rails 3.x?


You can also handle it through modifying the less variable @navbarBackgroundHighlight. If you set that to the same color as navbarBackground, then you will have no gradient. For example:

@navbarBackgroundHighlight: white;@navbarBackground: white;

Viola. No gradient, and no mucking with the internals of the CSS.


The bootstrap gradients come from the .navbar-inner class and can be removed by resetting the background-image properties set on the bootstrap.css stylesheet. I recommend you reset them on your own stylesheet, this way when the bootstrap is updated you won't have to come back and redo your changes, so place the following on your stylesheet to remove the gradients:

CSS

.navbar-inner {  background-color: #2c2c2c; /* place your solid color here */  background-image: none;  background-repeat: no-repeat;  filter: none;}


There are 2 really good references for the Bootstrap LESS variables.