It all depends on how you work with CSSes - if you need to apply small changes, first check them out live in Firebug / a similar tool. At the design stage (when you still don't have a final idea of how you want to style the application), you may want to work with regular CSS files, but as soon as the general style becomes clear, you should switch to ClientBundle / CssResource.
? , goals, CssResource:
Primary
- CSS, GWT (, CSS)
, , . , CSS, - , - , ( ) - - , . , (, ) CSS, .. - -, ( , ) - (Firebug). , ( , Google Eclipse).
- Minification - -, selector property . . .
- GWT - CSS ( GWT , ), . CSS, ? (. CSS)
- CSS , - CSS JS-, () - IE- !
- -
- CSS-
- API- API- - CssResources (, )
- CSS , - , - () CSS , , UiBinder (, ,
CssResource ) , , CssResource . , CSS ( , ). , (, , ocde, ), .
- BiDi ( Janus?) - , , :)
- CSS- - sprites - ?;)
- " CSS"
- - CSS - , (, , ) - , , ( CSS - )
- - , ,
- (StyleElement.setEnabled() ) - ( ), - ..
- (Java/CSS) - ()
- Obfuscation - , GWT- CssResources, - , . , ( ;)) , , - , ( 1-2 ) .
.warning , , ( ), - ( ).
StyleInjector . , CssResource ( , , ) . , CssResource, :
@eval userBackground com.module.UserPreferences.getUserBackground();
div {
background: userBackground;
}
userBackground ( constants, ).