We running vaadin application in liferay portal.
We have own custom vaadin theme. After we upgraded vaadin version to 6.4.7 we can’t see anymore all theme styles in vaadin application. Everything work well in old vaadin version (6.2.something). When I debugging in firebug I can see our custom theme but almost every properties has overridden in /portal/html/VAADIN/themes/liferay. It is funny that I first override liferay theme in our custom theme and after that liferay theme override our custom theme. We are not did any changes to themes or any config files. Liferay theme is bundled to vaadin-6.4.7 package.
The “liferay” theme bundled with Vaadin was earlier just an extension of “runo” with some very minor fixes. It was not very Liferay like and new portlets did not really fit well with the rest of the portal. It was therefore replaced by a Liferay/Alloy UI like theme in Vaadin 6.4.
My point is not liferay theme. I known that liferay theme change fonts and background colors how it is in liferay. Actually I tried our custom theme inherited runo or reindeer themes, but my problem seems still exists.
Below attachment is taken from firebug. Maybe it explain beter (in that time I used runo what you recommended).
CSS does not care about the order of imports, just about how specific the selectors are. You need to use a more specific selector to be able to override the other selector.
Is it implementation of themes changed between 6.2 and 6.4.7? Everything work well in 6.2.
If you look screenshot what I send earlier and below sample you can see that I
set button background color and image, but somehow runo theme override all of them.
So what I have to do to set button style without call setStyle for all buttons in code?
Yes, this is the case, I’m sorry to inform. I made some large theme changes in 6.3 (iirc), button’s theme being the one affected the most.
There’s an open ticket in our Trac about a similar case with our own Address Book tutorial theme. I’ve added a comment there that outlines some of the proper selectors to override:
#5455: AddressBook tutorial buttons looks regression .
The main relevant change is that the button’s background image no longer resides in the
.v-button element, but in the
.v-button-wrap element instead.
Edit : And now that I looked your CSS a bit closer, your theme gets overridden for the fact that Artur already outlined: Runo’s selector is more specific than yours. Change