我正在尝试追踪一些棘手的交互。这是场景:
- 我正在使用 sass-twitter-bootstrap github repo。我已将完整的 scss 文件集复制到我的 assets/twitter 目录中
当我的 application.css 看起来像这样时:
*= require_self
*= require twitter/bootstrap
*= require_tree .
刷新主页会给我这个错误:
Undefined variable: "$baseLineHeight".
(in /Volumes/MonsterHD/mydev/repsurv/app/assets/stylesheets/twitter/_accordion.scss)
当我的 application.css 看起来像这样时:
*= require_self
*= require twitter/bootstrap
然后我没有收到错误,但我的 custom.css.scss 没有应用。
我的 custom.css.sccs 看起来像这样:
@import "twitter/bootstrap";
/* universal */
html {
overflow-y: scroll;
}
body {
padding-top: 60px;
}
section {
overflow: auto;
}
textarea {
resize: vertical;
}
.center {
text-align: center;
}
.center h1 {
margin-bottom: 10px;
}
#logo {
float: left;
margin-right: 10px;
font-size: 1.7em;
color: #fff;
text-transform: uppercase;
letter-spacing: -1px;
padding-top: 9px;
font-weight: bold;
line-height: 1;
}
#logo:hover {color: #fff;
text-decoration: none;
}
这是我的宝石文件:
source 'https://rubygems.org'
gem 'rails'
gem 'american_date'
gem 'will_paginate'
gem 'bootstrap-will_paginate'
gem 'jquery-rails'
gem 'sass-rails'
group :development, :test do
gem 'sqlite3'
gem 'hirb'
gem 'pry'
gem 'pry-rails'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
group :development, :test do
gem 'rspec-rails'
gem 'factory_girl_rails'
end
group :test do
gem 'capybara'
gem 'faker'
gem 'launchy'
end
group :production do
gem 'pg'
end