Results 1 to 2 of 2

Thread: My own style does not appear

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Location
    Mother Russia
    Posts
    13
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Answers
    3884
    Vote Rating
    1297
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •