0

我在 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) {
4

1 回答 1

0

这似乎是 Singularity 中的一个错误。如果您可以在问题队列中提交问题以便我们能够跟踪,那就太好了。谢谢!

编辑:我无法使用 Singularity 1.0.7(当前版本)重现此错误。请确保您使用的是最新版本的 Singularity。

于 2013-04-14T15:43:01.750 回答