Sass :: SyntaxError Неопределенная переменная [duplicate]
На этот вопрос уже есть ответ:
Ложная положительная ошибка «неопределенная переменная» при компиляции SCSS 4 ответаЯ новичок в Asset Pipeline, поэтому дайте мне знать, если я что-то делаю неправильно.
Использование Rails 3.2 с SASS. У меня есть часть конфигурации, которая определяет кучу переменных SASS, которые я хочу использовать в моих файлах scss. За это руководство, Я импортируюconfiguration
будет первыйbonus
. Тем не менее, я продолжаю получатьSass::SyntaxError
говоряUndefined variable: "$darkRed"
в bonus.css.scss. Что я делаю не так
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;
}