我有一个非常基本的Ruby on Rails安装。我已经安装了bootstrap-sass
宝石,在我的Gemfile中有'bootstrap-sass' ~> 2.3.1.0
,并运行了bundle install
。重新启动所有应用程序。我在应用程序>资产>样式表中有style.css.scss
文件,其中@imports 'bootstrap';
以及响应式。这些样式实际上被拉到我的应用程序,因为他们风格的前端。但是,当我尝试使用变量或mixin时,出现附加图像中的错误,以及IntelliJ告诉我无法找到该变量。我在整个过程中都是新手,所以我只是想了解解决问题需要什么。IntelliJ 12将不会拉入Sass变量
我使用Ruby 2.0.0和Rails的这里3.2.13rc2
https://docs.google.com/file/d/0BwMz3RH42HtQb0U1TXdHTVF0QjQ/edit?usp=sharing
@import "bootstrap";
body {
padding-top: 60px;
}
@import 'bootstrap-responsive';
.footer {
margin-top: 50px;
color: $greyLight;
a {
color: #e5e5e5;
}
}
是对heruko现场开发站点的链接,而无需使用的变量:
http://shrouded-ocean-4277.herokuapp.com/
编辑:在我的供应商/ assets/stylesheets文件夹中,没有引导文件夹或_mixins或_variables文件。如果在将Gem放入Gemfile并进行软件包安装时安装了这些软件吗?
编辑:加入我的github:https://github.com/ChrisSki/omrails
你可以发布'style.css.scss'这部分使用变量吗? – 2013-03-20 20:54:59
@Nebelmann有什么想法? – 2013-03-21 01:05:28