Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24

Thread: Theming issue: Line 15: Functions may only be defined...

  1. #21
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Answers
    1

    Default

    I posted diff patches (for 4.0.7/4.1b1/b2) based on the suggested fixes in that bug report:
    (4.0.7/4.1b1) http://www.sencha.com/forum/showthre...l=1#post706963
    (4.1b2) http://www.sencha.com/forum/showthre...l=1#post723291

    Fixes the problem without having to rollback to an earlier version of sass (I'm on sass-3.1.12).

  2. #22
    Sencha User
    Join Date
    Feb 2012
    Posts
    2

    Default debug the sass files that causes this issues

    Only two files are responsible:

    extjs/resources/themes/stylesheets/ext4/default/mixins/_frame.scss
    extjs/resources/themes/stylesheets/ext4/default/widget/_tabbar.scss

    In the first file, move the block of code (from line 115 if I remember well)
    @function pad() { (content of the function pad) }
    from the content of the block
    @mixing x-frame(){ (content of the mixing x-frame) }
    to the beginning of the file, before the block named above (the mixing x-frame)

    Do the same in the second file with the blocks of code from line 31 (if I remember well)
    @mixin tab-bar-top(){(content of the mixing tab-bar-top) }
    @mixin tab-bar-bottom(){(content of the mixing tab-bar-bottom) }
    (move them above the mixing that contains them)

    The error occurred because Sass doesn't seem to allow (anymore?) having functions/mixings inside functions/mixings, if I understand well, that's why it works when you move those functions/mixings outside as I suggest

  3. #23
    Sencha User
    Join Date
    Jan 2012
    Location
    Atlanta, Georgia
    Posts
    40

    Default

    Thanks for posting this thread. Uninstall and reinstall of 3.1.1 fixed the issue, and doesn't break Touch theming.

  4. #24
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    Austin, TX USA
    Posts
    1

    Default bugs persist

    The incorrectly placed mixins mentioned in post #22 are still in the wrong location in _frame.scss and _tabbar.scss. This thread was started 7 months ago. Thought it would have been fixed by now.

Page 3 of 3 FirstFirst 123

Posting Permissions

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