【发布时间】:2013-07-09 10:59:54
【问题描述】:
在 Sencha Touch 2.2.1 中使用 this tutorial,由于未定义的 $font-family 变量,我无法编译我的项目:
error application.scss (Line 2 of _Class.scss: Undefined variable: "$font-family".)
Sass::SyntaxError on line ["2"] of
/Users/mac/Sites/apps/MyApp/touch/resources/themes/stylesheets/sencha-
touch/default/src/_Class.scss: Undefined variable: "$font-family".
有人知道如何解决这个问题吗?
注意:这是以前版本(Sencha Touch 2.2)中的bug。
application.scss
1 $base-color: #7A1E08;
2 $base-gradient: 'glossy';
3
4 @import 'sencha-touch/default/all';
5
6 @include sencha-panel;
7 @include sencha-buttons;
8 @include sencha-sheet;
9 @include sencha-picker;
10 @include sencha-toolbar-forms;
11 @include sencha-tabs;
12 @include sencha-toolbar;
13 @include sencha-carousel;
14 @include sencha-indexbar;
15 @include sencha-list;
16 @include sencha-layout;
17 @include sencha-form;
18 @include sencha-loading-spinner;
注意:我安装了 Ruby 1.9.3p448。
【问题讨论】:
-
您是否尝试将
$font-family变量设置为某些东西(放置在您的导入之前)? -
@cimmanon,我刚试过,但也没用
标签: compiler-errors sencha-touch sass compass-sass mixing