我试图弄清楚如何根据断点使用不同的网格设置,但无法让它工作。这是我的代码。我正在使用 response-to mixin 进行媒体查询。
$breakpoints: 'screenSmall' 480px 768px,
'screenMedium' 768px 1279px,
'screenXlarge' 1441px;
$total-columns: 4;
$column-width: 5em;
$gutter-width: 1em;
$grid-padding: $gutter-width;
[role="main"] {
@include container($total-columns);
background: #aaa;
@include susy-grid-background;
}
@include respond-to('screenSmall')
@include with-grid-settings(8,4em,1.5em,1em) {
[role="main"] { @include container; }
};
}
@include respond-to('screenMedium')
@include with-grid-settings(12,4em,1.5em,1em) {
[role="main"] { @include container; }
};
}