我是 Susy 的新手,我正在尝试使用 span-columns mixin,但是我收到以下错误:
Syntax error: Undefined mixin 'span-columns'
我已经安装了 compass-susy-plugin (0.9),但没有安装 Susy gem。
SCSS 文件包括 screen.scss 和 _base.scss
屏幕.scss
// Imports -------------------------------------------------------------------
@import "base";
@import "typography";
/* Layout ------------------------------------------------------------------*/
.container {
@include container;
@include susy-grid-background;
}
.main {
@include span-columns(8,12);
}
.left-sidebar {
@include columns(2);
@include alpha;
background-color: red;
}
.right-sidebar {
@include columns(2);
@include omega;
background-color: red;
}
_base.scss
// Imports -------------------------------------------------------------------
@import "susy";
// Grid ----------------------------------------------------------------------
$total-cols : 12;
$col-width : 4em;
$gutter-width : 1em;
$side-gutter-width : $gutter-width;
$show-grid-backgrounds : true;