【问题标题】:Susy. Wrong margins for columns in fixed layout苏西。固定布局中列的边距错误
【发布时间】:2015-05-28 10:01:47
【问题描述】:

我正在使用 Susy 进行固定布局,当第二列有右边距时,即使我指定它们嵌套在容器中,我也会遇到这个问题。

Codepen

HTML

<div class="control">
  <label class="control__label">Email</label>
  <input type="text" class="control__self">
</div>

CSS

@import "susy";

$fixed: (
  box-sizing: border-box,
  math: static,
  columns: 12,
  column-width: 60px,
  gutters: 20px/60px,
  gutter-poistion: inside
);

@include with-layout($fixed) {
  .control {
    @include container(12);
    .control__label {
      @include span(3 of 12);
    }
    .control__self {
      @include span(9 of 12);
    }
  } 
}

【问题讨论】:

    标签: sass susy-sass susy


    【解决方案1】:

    改变了

    .control__self {
      @include span(9 of 12);
    }
    

    .control__self {
      @include span(9 of 12 last nest);
    }
    

    并且像魅力一样工作。

    【讨论】:

      猜你喜欢
      • 2012-08-16
      • 2012-07-17
      • 1970-01-01
      • 1970-01-01
      • 2014-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-10
      相关资源
      最近更新 更多