我想一個新的自定義主題,添加到我的應用程序,但它提高時,我編譯羅盤上的以下錯誤:
_Class.scss:未定義的變量: 「$ FONT-FAMILY」
我試圖在_Class.scss
的html,body
字體更改爲$font-family
,但它不工作。我的Sencha Touch版本是2.2.1。我該如何解決這個問題?
// Let's start with the basics
$base - color: #CC0000;
$active - color: #850000;
// Buttons
$button-gradient: 'bevel';
// Lists
$list-bg-color: # eee;
$list - color: #333;
$list-pressed-color: # ddd;
$list - active - gradient: 'recessed';
$list - header - bg - color: #990000;
$list-header:white;
$list-header-gradient: 'bevel';
// Tabs
$tabs_dark_color: #000;
@import 'sencha-touch/default/all';
@include sencha-panel;
@include sencha-buttons;
@include sencha-sheet;
@include sencha-picker;
@include sencha-msgbox;
@include sencha-loading-spinner;
@include sencha-button-ui('action', #ffc801);
@include sencha-button-ui('decline', desaturate(darken(#b8a7a7, 10%), 5%));
.x-tabbar-dark .x-tab {
color: white;
}
.x-list-header {
color: white !important;
}
.x-list-round .x-list-header {
color: #777 !important;
}
.x-tabbar-dark.x-docked-bottom .x-tab .x-button-icon {
background: white !important;
}
檢查你的config.rb文件。文件內指定的路徑應該是正確的。 – GenieWanted
此問題已被詢問 [問題1](http://stackoverflow.com/questions/17751635/changing-default-blue-color-to-green) [問題2](http:// stackoverflow .com/questions/17588860/compass-compile-error-on-secha-touch-2-2-1-undefined-font-family-value-and-mix) – Viswa
謝謝Viswa,關注這個問題的答案。 http://stackoverflow.com/questions/17751635/changing-default-blue-color-to-green工作偉大 – GiGi