Twitter Bootstrap - Bootswatch-Rails 主题并非全部有效



我尝试使用bootswatch-rails,但它不太好用,例如,按钮不显示正确,不像bootwatch网站那样显示。
我把bootstrap-sass和bootswatch放在我的gemfile和bundle install

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'bootswatch-rails', '>=0.2.0'
  gem 'uglifier', '>= 1.0.3'
end
gem 'bootstrap-sass', '>= 2.1.0.0'

和我的bootstrap_and_overrides.css。SCSS文件看起来像这样

// First import journal variables
@import "bootswatch/cerulean/variables";
// Then bootstrap itself
@import "bootstrap";
// Responsive styles go here in case you want them
@import "bootstrap-responsive";
// And finally bootswatch style itself
@import "bootswatch/cerulean/bootswatch";  

我真不知道我哪里做错了。

您是否有任何其他CSS文件正在导入,您没有考虑到,如脚手架. CSS(当您通过脚手架命令生成资源时)?

最新更新