【发布时间】:2013-02-08 00:12:49
【问题描述】:
我想为移动设备、平板电脑和桌面设备的列创建一个具有不同行为的附加断点。
这就是我想要实现的:
桌面:
平板电脑:
移动:
我尝试使用 scss 函数添加 mobile-n 样式并在平板电脑版本中从 12 列切换到 9 列,但我想我错过了一些东西。
$tabletTotalColumns: 9;
/* Tablet 4-column Grid */
@for $i from 1 through $tabletTotalColumns {
.row {
.tablet-#{convert-number-to-word($i)} { width: gridCalc($i, $tabletTotalColumns) !important; float: $defaultFloat; padding: 0 ($columnGutter/2);
&:last-child { float: $defaultOpposite; }
&.end { float: $defaultFloat; }
}
&.collapse {
.tablet-#{convert-number-to-word($i)} { padding: 0; }
}
}
}
【问题讨论】:
标签: responsive-design breakpoints grid-layout zurb-foundation