Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    6
    Vote Rating
    0
    DavidGillespie is on a distinguished road

      0  

    Default Help with theming!

    Help with theming!


    Hi i am fairly new to Sencha Touch, yet embarked to use sencha for my 4th year project in Uni. I have the basic application working yet i am having difficulties in actually themeing it. I have set up a new scss folder in resources and set up a config.rb file as

    Code:
    # Delineate the directory for our SASS/SCSS files (this directory)
    sass_path = File.dirname(__FILE__)
    
    # Delineate the CSS directory (under resources/css in this demo)
    css_path = File.join(sass_path, "..", "css")
    
    # Delinate the images directory
    images_dir = File.join(sass_path, "..", "img")
    
    # Load the sencha-touch framework
    load File.join(sass_path, '..', '..', '..', '..', 'resources', 'themes')
    
    # Specify the output style/environment
    output_style = :compressed
    environment = :production
    and my scss file is
    Code:
    // 1. Variable overrides, example:
    // $base-color: #af2584;
    
    // 2. Include Sencha Touch styles
    @import 'u:\sencha\resources\themes\stylesheets\sencha-touch\default\all';
    @include sencha-panel;
    @include sencha-buttons;
    @include sencha-sheet;
    @include sencha-picker;
    @include sencha-toolbar-forms;
    @include sencha-tabs;
    @include sencha-toolbar;
    @include sencha-carousel;
    @include sencha-indexbar;
    @include sencha-list;
    @include sencha-layout;
    @include sencha-form;
    @include sencha-loading-spinner;
    
    // 3. Define custom styles (can use SASS/Compass), example:
    // .mybox {
    //     @include border-radius(4px);
    // }
    When i go to compile this i get the error
    Code:
        error myapp.scss (Line 24: Undefined mixin 'background-image'.)
    Sass::SyntaxError on line ["24"] of u: Undefined mixin 'background-image'.
    Run with --trace to see the full backtrace
    I dont know if i need to install anything else(blueprint). Any help would be amazing!

    Dave

  2. #2
    Touch Premium Member
    Join Date
    Mar 2011
    Location
    Portland, OR
    Posts
    133
    Vote Rating
    5
    markwyner is on a distinguished road

      0  

    Default


    Hey, David.

    I ran into huge walls while trying to make progress with the theming. After I figured out where the holes were I created a comprehensive post which covers solutions for most of those challenges:

    http://www.sencha.com/forum/showthre...h-Sencha-Touch

    I hope that helps.
    -------------------------------------------
    Mark Wyner, Partner, Bunker
    http://bunkercollective.com/

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    59
    Vote Rating
    0
    Nicodemuz is on a distinguished road

      0  

    Default


    I'm getting the same error after I started using the latest version of Sencha Touch (1.1.0). Were you able to find a solution to this problem?

  4. #4
    Touch Premium Member
    Join Date
    Mar 2011
    Location
    Portland, OR
    Posts
    133
    Vote Rating
    5
    markwyner is on a distinguished road

      0  

    Default


    @DavidGillespie and Nicodemuz:

    I found the line in question in /resources/themes/stylesheets/sencha-touch/default/_mixins.scss:

    Code:
    @include background-image(linear-gradient(color_stops(lighten($bg-color, 30%), lighten($bg-color, 7%) 2%, darken($bg-color, 7%))));
    @Nicodemuz:

    You're absolutely correct. This is a 1.1 issue. Though it's not the same error I received. I updated yesterday but didn't run a watch on my sass directory. I just now tried and got this error:

    Code:
    NoMethodError on line 9 of /Users/markwyner/Documents/Gigs/PriceBox/Site_Sencha/www/resources/sass/../themes/lib/theme_images.rb: undefined method `inline_image_string' for #<Sass::Script::Functions::EvaluationContext:0x1011f6bc8>
    When I reverted to 1.0.1a and ran a watch I received no errors. Line 9 of theme_images.rb reads:

    Code:
    inline_image_string(data(real_path), compute_mime_type(path, mime_type))
    So whatever they did here to update that config is throwing things off. I'm not very familiar with Ruby but I do know this is a function. And a global find for inline_image_string in the entire 1.1 download produces no other match than the one in this config file. So I'm not sure what it does.

    Regarding the error you both received with the undefined mixin, that's what I experienced from having incorrect paths to the source files for the Sencha Touch theme's CSS. That's why I pointed to my post.
    -------------------------------------------
    Mark Wyner, Partner, Bunker
    http://bunkercollective.com/

  5. #5
    Sencha Premium Member
    Join Date
    Nov 2008
    Posts
    40
    Vote Rating
    2
    rlegend is on a distinguished road

      0  

    Default


    From this post.

    Quote Originally Posted by cassebn
    Code:
    $ gem install chunky_png
    $ gem install compass --pre

Similar Threads

  1. Theming with CSS
    By agmona in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 28 Feb 2011, 1:27 AM
  2. Theming Issue
    By dorgan in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 31 Jan 2011, 12:27 AM
  3. Theming Ext JS 3+?
    By Tryll in forum Community Discussion
    Replies: 8
    Last Post: 26 May 2010, 4:43 AM
  4. Web 2.0 Theming
    By starpeople in forum Community Discussion
    Replies: 1
    Last Post: 29 Jan 2009, 7:47 AM
  5. Ext Theming help
    By stever in forum Community Discussion
    Replies: 2
    Last Post: 28 Sep 2008, 10:07 AM

Thread Participants: 3