Css default change in extjs 4.2.1 CSS variables

everything i am new to extjs. I am using extjs 4.2.1. and in ExtJS docs there is one new tab "CSS Vars". but I cannot set up the configuration of variables in the usual way. Can someone suggest me how to change the default CSS behavior for extjs (4.2.1) using CSS vars?

For example, I want to set the background color of a panel using $ panel-body-background-color. Then how can I install in the panel configuration? I get an error in the order of the code.

xtype:'panel', border:true, $panel-body-background-color : 'black' 
+4
source share
2 answers

here you will get everything you need to know how to use css variables and extjs theme. https://github.com/Scorpie/Ext.ux.BrowserCheck/blob/master/extjs-4.1.0/docs/guides/theming/README.md

+2
source

CSS variables are not used in this way; they are used in the SASS process. Check out ExtJS docs for more information on how to use this: http://docs.sencha.com/extjs/4.2.1/#!/guide/theming

0
source

Source: https://habr.com/ru/post/1488653/


All Articles