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