【发布时间】:2017-06-23 14:39:42
【问题描述】:
Susy 是否有一种内置方法来使用 span 函数而不是 mixin 来解决父母的孩子的问题?这里的孩子最终会很短(正如预期的那样):
$susy: (columns: 8, gutters: 0.3, global-box-sizing: border-box, gutter-position: split)
.full_width
width: span(5)
.three_columns
width: span(3 of 5)
手动添加装订线 — width: span(3 of 5) + gutter() — 或更改装订线样式 — width: span(3 of 5 after) — 都得到正确的结果,但我不确定是否有更直观的方法,除了编写我自己的 nested-span 函数包装其中之一。
【问题讨论】: