【问题标题】:How to off-set Columns in Susy Grid System?如何在 Susy Grid System 中偏移列?
【发布时间】:2014-11-22 16:34:41
【问题描述】:

我想使用 Susy 偏移列,就像 Bootstrap 中的偏移列。

我尝试使用

@include span(4 at 4);

但这不起作用。 我做错了什么?

【问题讨论】:

    标签: css sass offset susy-sass susy


    【解决方案1】:

    我刚刚发现了如何做到这一点。

    有两个函数(或 mixins)称为“push”和“pull”

    @include push(4);
    @include pull(4);
    

    就是这样:)

    【讨论】:

    • 您是将此应用于具有@include span(X of X) 的元素,还是应用于子元素?
    • @ChristianFazzini,是的,我将其添加到由@include span(x) 控制的元素中,因此该元素看起来像这样@include span(4); @include push(4)
    • 谢谢。我
    猜你喜欢
    • 2014-03-20
    • 1970-01-01
    • 1970-01-01
    • 2021-01-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-23
    相关资源
    最近更新 更多