1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    9
    Vote Rating
    0
    peterrobertz is on a distinguished road

      0  

    Default Unanswered: Window Shadow, SASS

    Unanswered: Window Shadow, SASS


    Hey,

    i dont get it. how can i change the window shadow color?

    i inspected a window with firebug. the shadow is set directly to the element, is it possible to change the color in my sass theme?

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Posts
    6
    Vote Rating
    0
    cjanssenskire is on a distinguished road

      0  

    Default It would appear that Sencha never though anyone would want a color other than #888

    It would appear that Sencha never though anyone would want a color other than #888


    As this is hard-coded into the shadow function...after all why would you want to theme it...

    Line 190-192 of shadow.js:

    Code:
                if (Ext.supports.CSS3BoxShadow) {
                    targetStyle[this.boxShadowProperty] = '0 0 ' + this.offset + 'px #888';
                }
    It would appear that you will have to put some nice css code with !important to get around this. Which I am sure you agree is horrible, but looking at EXT's css they use it everywhere, so it must be ok. [I hope you all know that I am joking and that ext should invest in writing correct CSS rather than throwing !important around every 5 seconds...]

Thread Participants: 1

Tags for this Thread