Используя версии github ветки compass rails31 и sass-rails:
gem "sass-rails", :git => "https://github.com/rails/sass-rails.git"
gem "compass", :git => "https://github.com/chriseppstein/compass.git", :branch => "rails31"
Я создал частичный (_base.css.scss), который содержит импорт для blueprint / reset и blueprint-typography. У меня также есть файл screen.css.scss, который включает мою базовую партицию.
Когда rails компилирует это в application.css, я дважды вижу мои сбросы и типографику css.
таблицы стилей / 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 .
*/
таблицы стилей / частичные / _base.css.scss
@import "blueprint/reset";
@import "blueprint/typography";
@include blueprint-typography;
таблицы стилей / партиалы / screen.css.scss
@import "partials/_base";
#container { @include container; }
Я действительно не понимаю, что здесь происходит, и какова правильная конфигурация, чтобы начать использовать компас с рельсами 3.1
Большое спасибо за ваш совет!