I use the last leading branch of bootstrap rails and try to modify bootstrap variables that are compatible with the rails resource pipeline.
There are these gems in my gem file
gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git'
gem 'uglifier', '>= 1.0.3'
gem 'less-rails-bootstrap'
I also included *= require bootstrap_and_overridesin my application.cssfile. I know that sprockets compiles each css file individually, and therefore you cannot expect multiple css files to be able to link to each other. Therefore, the bootstrap_and_overrides.css.less file contains the following:
@import "twitter/bootstrap/bootstrap";
body { padding-top: 80px; }
@import "twitter/bootstrap/responsive";
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png');
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png');
@fontAwesomeEotPath: asset-path('fontawesome-webfont.eot');
@fontAwesomeWoffPath: asset-path('fontawesome-webfont.woff');
@fontAwesomeTtfPath: asset-path('fontawesome-webfont.ttf');
@fontAwesomeSvgzPath: asset-path('fontawesome-webfont.svgz');
@fontAwesomeSvgPath: asset-path('fontawesome-webfont.svg');
@import "fontawesome";
@navbarHeight: 60px;
@navbarText: @white;
@textColor: @orange;
@navbarLinkColor: @white;
@navbarBackground: darken(@linkColor, 15%);
@navbarBackgroundHighlight: @linkColor;
However, none of my overrides work within the asset pipeline. Without it, they do an excellent job. Does anyone know why?
Update My Gem Group Assets
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'less-rails'
gem 'therubyracer', :platform => :ruby
gem 'uglifier', '>= 1.0.3'
end
source