【发布时间】:2014-07-30 14:13:38
【问题描述】:
我想使用 Bourbon/Neat 创建一个灵活的响应式网格,它不仅可以改变列数,还允许我跨断点配置列之间的间距。
所以理论上,这样的事情会起作用:
@import "mixins/neat/neat-helpers";
$visual-grid: true;
$visual-grid-color: yellow;
$visual-grid-index: front;
$visual-grid-opacity: 0.3;
$gutter: 5%;
$column: 5%;
$gridS: new-breakpoint(min-width 0 32);
$gutter: 1.5625%;
$column: 3.515625%;
$gridL: new-breakpoint(min-width 48em 20);
这目前给了我一个灵活的列数,但列:装订线比例保持不变。
我已经调查了singularity.gs,但不想将 Compass 作为依赖项引入。
有人有修复/解决方法吗?
【问题讨论】:
-
奇点不依赖于罗盘。
-
@lolmaus-AndreyMikhaylov - 谢谢,很高兴知道。安装说明另有建议,但我现在已将其删除,并且工作正常。显然现在也可以安装凉亭。
-
实际上,尽管任何 Sass 逻辑都不依赖 Compass,但标准安装似乎确实需要 Compass 才能运行。
标签: sass grid-layout bourbon singularitygs neat