【发布时间】:2013-05-01 12:40:33
【问题描述】:
我正在尝试使用来自 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 基础 gem 的 Rails 应用程序。
【问题讨论】:
-
你能展示一下 Mixin 代码部分吗?
标签: sass zurb-foundation