【发布时间】:2017-03-06 12:01:59
【问题描述】:
我已升级到 Bourbon Neat v2,其中包括在容器网格的左侧和右侧添加排水沟。
在v1 中,我可以在span-columns mixin 中使用block-collapse 来吃掉元素两侧的排水沟,但是,在v2 中,这个mixin 已被删除。 v2 中有一个 grid-collapse 函数,但这并不像我预期的那样工作。我当前的标记如下(为简洁起见减少了):
.wrapper {
@include grid-container; // columns: 12, gutter: 1rem
@include grid-visual(lime);
}
.sidebar {
@include grid-columns(2 of 12);
}
.container {
@include grid-columns(10 of 12);
}
如何移除外部排水沟,折叠第 2 列和第 3 列之间的排水沟,以便我的侧边栏和容器彼此相邻?
【问题讨论】: