【问题标题】:Error when using add-gutter in Singularity Grid System在 Singularity Grid System 中使用 add-gutter 时出错
【发布时间】:2013-04-15 00:01:35
【问题描述】:

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

【问题讨论】:

标签: singularitygs


【解决方案1】:

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

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

【讨论】:

  • 谢谢 — 我将把它移到问题队列中。是的,我使用的是 1.0.7。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-09-06
  • 1970-01-01
  • 1970-01-01
  • 2016-10-20
  • 1970-01-01
  • 2021-07-26
  • 2021-10-10
相关资源
最近更新 更多