According to firebug the order of css files is as follows:
my themes css file(VAADIN/themes/mytheme/styles.css)
styles.css from the widgetset (VAADIN/widgetsets/bla bla/styles.css)
AFTER THOSE comes the addon’s own css files (…/stepper/stepper.css)
so if I copy-paste a style definition from the addons original css file to my css themes css file (the first css file) to change it to my taste it will be overriden by the original style definiition (in the 3rd css file)
So how can I change this addons look and feel OR in other words How can I change the order of css files to make my custom themes css file load last so this way I can easily override EVERY css styles I want without using css magic (!important, specificity etc)
Well, currently you can’t. The order is so because most add-ons load their theme using GWT’s module descriptor, which adds the stylesheet after the initial render of the application HTML. So your only option is CSS “magic”. In most cases, just adding one extra “div” (element selector) before the copied selector is enough so that the specificity increases:
// Original
.v-addon-foobar {
// Stuff you want to override
}
// Use this
div .v-addon-foobar {
// Your overrides
}