与中间人合作并使用 Bourbon、Neat 和 Bitters。启动服务器后,我收到以下错误消息 -
Error compiling CSS asset
Sass::SyntaxError: Undefined variable: "$helvetica"
in (source/stylesheets/base.css.scss: 1)
source/stylesheets/base/_variables.css.scss:1
我查看了未解决的问题和其他思想机器人论坛,并尝试了那里提到的所有解决步骤,但没有任何成功
我base.css.scss
的如下 -
@charset "utf-8";
@import "bourbon";
@import "base/base";
@import "neat";
@import "partials/layout";
@import "partials/nav";
@import "partials/footer";
@import "highlight";
_base.css.scss
-
@import "variables";
@import "grid-settings";
@import "buttons";
@import "forms";
@import "lists";
@import "tables";
@import "typography";
和_variables.css.scss
$helvetica: 'Oxygen', $helvetica;
// Typography
$base-font-family: $helvetica;
$heading-font-family: $base-font-family;
// Font Sizes
$base-font-size: 1em;
// Line height
$base-line-height: 1.5;
$heading-line-height: 1.2;
...