首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在奇点网格系统中使用add-gutter时出错

在奇点网格系统中使用add-gutter时出错
EN

Stack Overflow用户
提问于 2013-04-12 05:00:19
回答 1查看 402关注 0票数 0

我在Singularity中使用了断点,还对网格外部的元素使用了断点扩展(全角标题nav)。在我的screen.scss文件中有:

代码语言:javascript
复制
@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()调用的情况下,它运行得很好,但当我添加它们时,它会中断:

代码语言:javascript
复制
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行是:

代码语言:javascript
复制
@include breakpoint($tabletwidth) {
EN

回答 1

Stack Overflow用户

发布于 2013-04-14 23:43:02

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

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15958780

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档