Глобальные переменные SASS + Rails 3.1

Я использую Rails 3.1RC4 с настройкой SASS по умолчанию. У меня есть следующие файлы

application.css.scss

/*
 * This is a manifest file that'll automatically include all the stylesheets available in this directory
 * and any sub-directories. 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.
 *= require_self
 *= require_tree . 
*/

_variables.css.scss

$var1 : somevalue;
...

site_layout.css.scss

@import "variables";
... Some Sass Code

Но я не могу получить доступ к переменным, определенным в _variables.css.scss в site_layout. Что я делаю не так? Rails явно находит файл переменных, так как он не выдает ошибку «файл не найден», что происходит, если я изменяю имя файла импорта. Тем не менее, вары не переносятся.

Есть идеи?

Спасибо!

11
задан Denny 18 June 2011 в 00:59
поделиться