What is the method of choice to adjust CSS changes in vaadin?

Posted by Karussell on Stack Overflow See other posts from Stack Overflow or by Karussell
Published on 2010-05-13T13:18:29Z Indexed on 2010/05/13 13:24 UTC
Read the original article Hit count: 269

Filed under:
|
|
|
|

I am struggling with some minor layout changes in vaadin which has to be done on Java AND Css side.

Everytime I need to adjust a layout thing like padding-top, background color or bold text of one component I need to set the style via Java code too:

userLink.setStyleName("textbold");

The changes in my styles.css (under VAADIN/themes/app/) would then be:

@import "../runo/styles.css";

.textbold {
    font-weight: bold;
}    
...

Is this the correct way of changing the CSS or is there another way? Can I do this without affecting the Java code?

© Stack Overflow or respective owner

Related posts about vaadin

Related posts about layout