1. #1
    Sencha User
    Join Date
    Apr 2012
    Location
    Mother Russia
    Posts
    13
    Vote Rating
    0
    Cypher-kun is on a distinguished road

      0  

    Default Unanswered: My own style does not appear

    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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,811
    Answers
    3467
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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:

    Code:
    @import 'ui';
    If you have _ui.scss saved within a directory named custom then you can include it:

    Code:
    @import 'custom/ui';
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.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.

Thread Participants: 1

Tags for this Thread