I reread the Dojo inline documentation, A.Russell "Dojo The Definitive Guide", and the "Mastering Dojo" in order to find some advice for creating my own theme. All that I've found is just 'hacks'. Only one real sentence from "Dojo Mastering" book: "Although we don't normally recommend copy and paste, in this case it makes good sense to copy an established Dijit theme to one of your own and then modify it."
"Copy and paste" what? The tundra.css file with 300 statements? I use the only one
TabContainer widget in my application. Maybe there is an easier way?
Yes, I have found it. Inside of the themes/tundra/layout directory there is TabContainer.css file. It contains 42 css statements for formating the TabContainer widget, and all of them are duplicated css statements of the tundra.css file. (The tundra.css file has 57 statements for the TabContainer, but after analyzing I understood that the rest of - 15 statements are related to RighToLeft layouts that I do not support in my application).
For my application I need only 10-15 of these statements. But the decision - which of them is a big job.
/********* TabContainer **********/ /******** End TabContainer ********/2. I removed all .tundra words. (See details).
Suppose my own color pallete is like this:
One more line in the dojo_widgets.css file:
.dijitTabContainer { background:#F0E68C; color:#4F4F2F;}and small correction. That is it!
dj_ie, dj_ie6, dj_ie7, dj_iequirks, dj_safari, dj_gecko.dojoroot/dijit/_base/sniff.js