【问题标题】:Zurb foundation SASS section include mixinZurb foundation SASS section include mixin
【发布时间】: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


【解决方案1】:

原来我必须更新 zurb。我使用的是 4.0.9。并且这些 mixin 选项似乎是后来添加的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-07-19
    • 2019-02-05
    • 1970-01-01
    • 1970-01-01
    • 2013-03-09
    • 2014-10-24
    • 2017-10-11
    相关资源
    最近更新 更多