我在Singularity中使用断点,并且还对网格外的元素使用断点扩展(全宽标题导航)。在我的screen.scss文件中,我有:
@import "singularitygs";
@import "breakpoint";
@import "base";
$tabletwidth: 40em;
$smalldesktopwidth: 60em;
$grids: 4;
$grids: add-grid(9 at $tabletwidth);
$grids: add-grid(12 at $smalldesktopwidth);
$gutters: 1/3;
$gutters: add-gutter(1/2 at $tabletwidth);
$gutters: add-gutter(1/2 at $smalldesktopwidth);
如果没有add-gutter()调用它运行正常,但是当我添加它们时它会断开:
Syntax error: Undefined operation: "0.5 times 2".
on line 20 of /Library/Ruby/Gems/1.8/gems/singularitygs-1.0.4/stylesheets/singularitygs/math/_columns.scss, in `output-isolation'
from line 7 of /Library/Ruby/Gems/1.8/gems/singularitygs-1.0.4/stylesheets/singularitygs/_api.scss, in `grid-span'
from line 102 of /Applications/MAMP/htdocs/modernlink/sass/screen.scss, in `@content'
from line 178 of /Library/Ruby/Gems/1.8/gems/breakpoint-1.3/stylesheets/_breakpoint.scss, in `breakpoint'
from line 99 of /Applications/MAMP/htdocs/modernlink/sass/screen.scss
我错误地使用了这个吗?任何人都可以提出修复建议吗?
编辑:screen.scss的第99行是:
@include breakpoint($tabletwidth) {
答案 0 :(得分:0)
这似乎是Singularity中的一个错误。如果你能提出问题over on the issue queue让我们能够跟踪,那就太好了。谢谢!
编辑:我无法使用Singularity 1.0.7(当前版本)重现此错误。请确保您使用的是Singularity的最新版本。