使用this tutorial與煎茶觸摸2.2.1的錯誤,我不能編譯,因爲未定義$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".
有沒有人有一個想法如何解決這個問題?
注意:這是以前版本中的bug(Sencha Touch 2.2)。
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。
你嘗試設置'$字體family'變量的東西(放在進口超前)? – cimmanon
@cimmanon,我只是試過,但也不工作 – Pompeyo