我想將我的Sencha Touch應用程序的默認藍色更改爲綠色。我遵循的步驟如下:將默認藍色主題更改爲綠色
gem update --system
gem install compass
compass create myfile
複製一個
.scss
文件和目錄touch-2.2.1/resources/sqss/
粘貼它。粘貼在該文件下面的代碼並將其命名爲
happy.css
:$base-color: #709e3f; @import 'sencha-touch/default/all'; @include sencha-panel; @include sencha-buttons; @include sencha-sheet; @include sencha-tabs; @include sencha-toolbar; @include sencha-list; @include sencha-layout; @include sencha-loading-spinner;
compass compile happy.scss
在
app.html
頁面替換名稱happy.scss
。運行應用程序,我得到了以下錯誤:
Syntax error: Undefined variable: "$font-family".\a on line 2 of /Applications/XAMPP/xamppfiles/htdocs/touch-2.2.1/resources/themes/stylesheets/sencha-touch/default/src/_Class.scss\a from line 1 of /Applications/XAMPP/xamppfiles/htdocs/touch-2.2.1/resources/themes/stylesheets/sencha-touch/default/src/_all.scss\a from line 1 of /Applications/XAMPP/xamppfiles/htdocs/touch-2.2.1/resources/themes/stylesheets/sencha-touch/default/_all.scss\a from line 3 of /Applications/XAMPP/xamppfiles/htdocs/touch-2.2.1/resources/sass/happy.scss\a\a 1: /Applications/XAMPP/xamppfiles/htdocs/touch-2.2.1/resources/sass/happy.scss
我該如何解決這個問題?