1

Zurb Foundation の Section Mixin を使用しようとしています

http://foundation.zurb.com/docs/components/section.html

ソースにあるように:

https://github.com/zurb/foundation/blob/master/scss/foundation/components/_section.scss

セクション mixin を次のように呼び出すことができます。

.section-container {
    @include section-container($section-type:accordion);
    & > section { @include section($section-type:accordion, $title-selector:".title-sample", $content-selector:".content-sample"); }
  }

次のエラーが発生します。

Mixin section doesn't have the following arguments: $title_selector, $content_selector.

インクルードのみを使用してみましたが、パラメーターなしで機能します。しかし、色とそこにあるすべてのプロパティをカスタマイズしたいです。

ヒントを教えてください。

SASS gem、Compass、および Zurb Foundation gem がインストールおよびセットアップされた Rails アプリを使用しています。

4

1 に答える 1

1

zurbを更新しなければならなかったことがわかりました。私は4.0.9を使用していました。これらの mixin オプションは後で追加されたようです。

于 2013-05-07T16:40:56.883 に答える