2012-03-25 7 views
1

これは私の現在のSASSファイルです:Compassスプライトマップ変数名?

$icons-spacing: 12px; 
$icons-sprite-dimensions: true; 
@import "sprites/icons/*.png"; 
@include all-icons-sprites; 

.odd .chat-marker { background-position: sprite-position($icons, chat-marker-inverted); } 

エラー:Undefined variable "$icons"

だから、スプライトマップの変数は何ですか?上のマップ設定変数はうまく動作します。私は、生成されたミックスインを使用して解決策を見つけた

答えて

0

は、次のように:

.odd .icons-chat-marker { @include icons-sprite(chat-marker-inverted); } 
+0

あなたは、実際のスプライト$マップへの参照を取得する方法を見つけるために管理していましたか?私は特に 'sprite-position()'を使う必要がある状況があります。 –