Results 1 to 3 of 3

Thread: Scss file correct location

  1. #1
    Sencha User
    Join Date
    Dec 2015
    Posts
    118
    Answers
    12

    Default Answered: Scss file correct location

    Hello,

    I am creating a custom cls for fieldset

    Code:
    ...
    xtype: 'fieldset',
    cls: 'custom-fieldset',
    ...
    If I put this in X.scss where should I put this file for the styling to work properly?
    We could also use 'ui' if that works better but either way I am unsuccessful so far in making them work.


    Thank you,

  2. Quote Originally Posted by herme063 View Post
    Hello,

    I am creating a custom cls for fieldset

    Code:
    ...
    xtype: 'fieldset',
    cls: 'custom-fieldset',
    ...
    If I put this in X.scss where should I put this file for the styling to work properly?
    We could also use 'ui' if that works better but either way I am unsuccessful so far in making them work.


    Thank you,
    You can put it into sass/etc and add import to all.scss

  3. #2
    Sencha User
    Join Date
    Mar 2016
    Posts
    44
    Answers
    2

    Default

    Quote Originally Posted by herme063 View Post
    Hello,

    I am creating a custom cls for fieldset

    Code:
    ...
    xtype: 'fieldset',
    cls: 'custom-fieldset',
    ...
    If I put this in X.scss where should I put this file for the styling to work properly?
    We could also use 'ui' if that works better but either way I am unsuccessful so far in making them work.


    Thank you,
    You can put it into sass/etc and add import to all.scss

  4. #3
    Sencha User
    Join Date
    Dec 2015
    Posts
    118
    Answers
    12

    Default

    Yes, it seems like it has to be this way. Another way would also to create a custom component and target that with the sass file.

Similar Threads

  1. Correct method to override a global scss variable in Architect
    By richard.styles in forum Sencha Architect 3.x: Q&A
    Replies: 3
    Last Post: 23 Jul 2016, 6:15 AM
  2. Replies: 1
    Last Post: 10 Dec 2011, 8:46 AM
  3. Replies: 0
    Last Post: 15 Sep 2011, 1:56 AM
  4. Replies: 0
    Last Post: 15 Sep 2011, 1:51 AM
  5. Correct syntax and location for a valid sencha touch (js) function?
    By EduardoIbarra in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 25 Nov 2010, 5:03 PM

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
  •