Compass rails31 ブランチと sass-rails の github バージョンを使用します。
gem "sass-rails", :git => "https://github.com/rails/sass-rails.git"
gem "compass", :git => "https://github.com/chriseppstein/compass.git", :branch => "rails31"
blueprint/reset および blueprint-typography のインポートを含むパーシャル (_base.css.scss) を作成しました。ベース部分を含む screen.css.scss ファイルもあります。
Rails がこれを application.css にコンパイルすると、リセットとタイポグラフィの css が 2 回表示されます。
stylesheets/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 .
*/
stylesheets/partials/_base.css.scss
@import "blueprint/reset";
@import "blueprint/typography";
@include blueprint-typography;
stylesheets/partials/screen.css.scss
@import "partials/_base";
#container { @include container; }
ここで何が起こっているのかよくわかりません.Rails 3.1でコンパスを使い始めるための正しい構成は何ですか?
ガイドラインありがとうございます!