【发布时间】:2011-11-25 06:08:54
【问题描述】:
我的 projects.css.scss 文件如下所示,
// Place all the styles related to the Projects controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
$right-container-background: #3BBFCE;
$right-container-padding: 2px;
.right-container{
background-color: $right-container-background;
color: white;
padding-left: $right-container-padding;
padding-right: $right-container-padding;
}
它表示所有样式都会自动添加到您的 application.css 中。
但是如果不导入到 application.css 我就无法使用它 即
@charset "utf-8";
@import "projects.css.scss";
@import "partners.css.scss";
所以,当我在视图的项目部分时,它不会加载在 application.css 中导入的所有 .scss 文件吗?
【问题讨论】:
-
你能把整个
application.css加起来吗? -
我已经在上面提供了我的 application.css
标签: stylesheet ruby-on-rails-3.1 sass