Hi all,
This is a tip on how to override the CSS in any query or form i.e. you can change any CSS setting for e.g. 1 specific query.
1. Figure out which CSS file the query use. In this example it´s bluebay.css for a Blue bay query. NB: Figure this out by using the browser developer tools.
2. Figure out which CSS class the setting you want to change has. In this example I will change the query header settings and the CSS class is ".x-panel-header-default". NB: Figure this out by using the browser developer tools.
3. In file bluebay.css, create a new CSS class (.myQueryHeaderClass) which will be your override class. Add the class from step 2 to your override class:
.myQueryHeaderClass .x-panel-header-default {background-color:#000 !important;background-image:none !important; }
4. In the query where you want you new settings add:
"config.cls="myQueryHeaderClass";"
NB: With this fix you can change basically all CSS settings for any query or form and you can add multiple classes (step 2 classes) to your override class.
Override CSS per query/form
Override CSS per query/form
Henrik (V8 Developer Ed. - Windows)
Hi Henrik,
Great post. Since now...we have modified themes css files and we have to be very carefull if more apps used same theme, but your solution is far more elegant and now we can use any custom classes as our imagination can take, only sky is the limit.
Thx a lot.
Great post. Since now...we have modified themes css files and we have to be very carefull if more apps used same theme, but your solution is far more elegant and now we can use any custom classes as our imagination can take, only sky is the limit.
Thx a lot.
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
Info + Walkthrough
Here is a bit more info on this fix and also a walkthrough of finding the right CSS class etc..
http://www.awareim.com/forum/viewtopic.php?t=7173
http://www.awareim.com/forum/viewtopic.php?t=7173
Henrik (V8 Developer Ed. - Windows)