25 Apr 2012 2:42 AM #1
Unanswered: My own style does not appear
Hello guys. Really glad to be here
I'm new to the Sehcha Touch.
I'm following this guide: Theming Sencha Touch to start in theming.
For now I have installed Ruby, Compass and can compile my own CSS-files from SCSS-file.
I can see the changes in my compiled CSS-file doing them in SCSS-file. Everything works fine.
But application is still taking the original CSS-file instead of my.
I think I need to specify an application to get my CSS-file.
Tell my please where I can do it?
UPD: I wonder... maybe this guide is out of date?
I found a folder named SCSS in RESOURCES-folder.
It contains everything I need: config.rb and app.scss.
I can overwrite original app.css by compiling SCSS-file in this folder.
Is this correct way of theming?
Last edited by Cypher-kun; 25 Apr 2012 at 4:10 AM. Reason: probably found answer
27 Apr 2012 4:06 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
You should go in the folder with the config.rb file and compass compile it. You should make your CSS changes in the app.scss or add additional scss file and include them in app.scss.
Say you have _ui.scss (notice the prefixed underscore) then in your app.scss you can include it:
@import 'custom/ui';Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.