Susy 2 中的 gutter function/mixin 发生了什么?

What happened with gutter function/mixin in Susy 2?

这是我的 susy 配置

$susy: (
    flow: ltr,
    math: fluid,
    output: float,
    gutter-position: right,
    container: 1000px,
    container-position: center,
    columns: 12,
    gutters: .15,
    column-width: false,
    global-box-sizing: content-box,
    last-flow: to,
    debug: (
            image: show,
            color: rgba(#66f, .25),
            output: overlay,
            toggle: top right,
    ),
    use-custom: (
            background-image: true,
            background-options: false,
            box-sizing: true,
            clearfix: false,
            rem: true,
    )
);

测试代码:

.test {
    @include gutter();
    margin-bottom: gutters();
}

编译后 return 什么都没有...

.test {
      margin-left: span(2) + gutters(2);
}

显示错误:无效的空操作:“15.75092%加空”

有什么问题?

您的布局设置错误,因此您的间距未定义,因此您得到的是空值。

gutter-position: after,不是gutter-position: right。 (有效设置为 these)。

看到它工作 here

(剧透警告,您的代码的输出是

.test {
  margin-right: 1.0989%;
  margin-bottom: 1.0989%;
}

.test2 {
  background: red;
  margin-left: 22.72766%;
}