1

Singularitygs Grid overlay Not Showing 这把我逼到了墙角,我终于有了奇点工作,但无法缝合显示网格 - 如果有人能提供帮助,那就太好了。

不关心花哨的切换解决方案,只想拼命地看到网格叠加!

我的 HTML

<body data-development-grid="show">

我的 SASS

@import "singularitygs"
// Singularity 1.2 Syntax
@include add-grid(12)
@include add-gutter(1/3)

.container
 @include background-grid
 max-width: 940px
 margin: 0 auto
 min-height: 100%

.one
 background-color: black
 width: 100px
 height: 100px
 top: 2px
 left: 5px

如果有帮助,我正在使用 codekit。

提前致谢

4

1 回答 1

1

Finally got it working. The solution is to apply sgs-change ('debug', true).

Here's my Sass code if anyone needs it:

@import "breakpoint"
@import "singularitygs"


//////////////////////
// Set up the grid  //
//////////////////////

+add-grid(12)
+add-gutter(1/3)
+add-gutter-style('split')
+sgs-change ('debug', true)

body
 @include background-grid

Demo: http://sassmeister.com/gist/fa0ac03b02e604f6bdf6

于 2014-06-12T11:03:39.373 回答