How do you customize something like Twitter Bootstrap in a Rails 3.2 app? I have the gem ('bootstrap-sass 3.0.3.0') already. Do I just get a copy of the Sass files and not use the gem at all? I feel like I am missing something here because I have begun to put !important in the CSS of my code. (I'm just trying to change the color of the navbar into a gradient.)
Is there also a way to not use the entire framework? I feel like I don't use some of the components anyway (both CSS and JS).
in your
app/asssets/stylesheets/application.sass
list of variables https://github.com/thomas-mcdonald/bootstrap-sass/blob/master/vendor/assets/stylesheets/bootstrap/_variables.scss
important thing is to include those variables before you import bootstrap
if you want to import only parts of bootstrap than (like described on the Readme page) include only parts you want
e.g. in
app/assets/javascript/application.js
: