1. #1
    Sencha User JamieMason's Avatar
    Join Date
    Apr 2010
    Location
    Leeds, UK
    Posts
    42
    Vote Rating
    0
    JamieMason is on a distinguished road

      0  

    Default Unanswered: Proper way to style nested container titles using SASS variables?

    Unanswered: Proper way to style nested container titles using SASS variables?


    Hi,
    What's the recommended way of achieving this? I have the following overrides in my SASS variables;

    Code:
    $panel-header-font-size: 14px;
    $panel-header-line-height: 20px;
    Which make the panel titles much bigger. I only really want a bigger title for my outermost component, which would represent a kind of page title, with any items beneath it using a smaller size.

    What I'm wondering is;
    1. Do I have to use CSS to style e.g. .x-panel .x-panel .x-panel-header-default?
    2. Can I set classes on a panel's title elements individually? (I couldn't see how to do this at http://docs.sencha.com/ext-js/4-0/#!...xt.panel.Panel).
    3. Can it be done using the SASS variables provided by Ext?
    Thanks a lot.

  2. #2
    Ext JS Premium Member
    Join Date
    May 2010
    Posts
    3
    Vote Rating
    0
    crispthinking is on a distinguished road

      0  

    Default


    The easiest way to do this is through CSS, so just add an ID to the container and apply the style to the header wrapper:


    Code:
    #aGridComponent .x-panel-header-text { font-size: 1.2em; }

  3. #3
    Sencha User JamieMason's Avatar
    Join Date
    Apr 2010
    Location
    Leeds, UK
    Posts
    42
    Vote Rating
    0
    JamieMason is on a distinguished road

      0  

    Default


    My problem is that other deeply nested panel headers would also receive that style

  4. #4
    Ext JS Premium Member
    Join Date
    May 2010
    Posts
    3
    Vote Rating
    0
    crispthinking is on a distinguished road

      0  

    Default


    That won't be the case for a single grid with a unique ID?

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi