【发布时间】:2016-07-24 07:01:33
【问题描述】:
我正在使用 susy 创建一个非常基本的博客布局,它的 3 列宽用于大中型屏幕,2 列用于小屏幕(平板电脑),然后 1 列用于移动设备。手机和平板布局正常,但中大屏幕不流畅,第一行和第三行的第一列没有正常浮动,你可以看到here
下面是我的scss:
.col-post {
margin-bottom: gutter();
background: #f5f5f5;
@include breakpoint(xs) {
@include span(12 of 12);
}
@include breakpoint(sm) {
@include span(6 of 12 first);
&:nth-child(2n) {
@include last;
}
}
@include breakpoint(md) {
@include span(4 of 12 first);
&:nth-child(3n) {
@include last;
}
}
@include breakpoint(lg) {
@include span(4 of 12 first);
&:nth-child(3n) {
@include last;
}
}
}
我的 scss 样式表顶部的 susy 地图是:
@import "susy";
$susy: (
columns: 12,
container: 1200px,
gutters: 1/4,
grid-padding: 1em,
global-box-sizing: border-box,
debug: (image: show)
);
【问题讨论】:
标签: susy-compass susy susy-sass