我是新來的資產管道,所以讓我知道如果我做錯了事情。Sass :: SyntaxError未定義變量
在SASS中使用Rails 3.2。我有一個配置partial,它定義了我想在整個scss文件中使用的一串SASS變量。根據this guide,我先輸入configuration
,然後輸入bonus
。但是,我不斷收到Sass::SyntaxError
在bonus.css.scss中的Undefined variable: "$darkRed"
。我究竟做錯了什麼?
application.css.scss
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*/
@import "configuration";
@import "bootstrap";
@import "bonus";
_configuration.css.scss
//colors
$darkRed: #B94A48;
$controlColor: #777;
bonus.css.scss
div.give-inline-help .help-inline
{
color: $darkRed;
font-size: 15px;
font-family: MuseoSans-300;
padding-left: 0px;
}
這是一個3歲以上的老問題......你現在將它標記爲重複? – Raphael