Monday, December 5, 2011

Re: inherit project's CSS to override standard gwt styles

In my opinion, overriding GWTs CSS is more trouble then it's worth.

Just change your .gwt.xml file to use <inherits name='com.google.gwt.user.theme.standard.StandardResources'/> so it doesn't import any of the GWT CSS, and then add in your own CSS in your html file.

Things will then go much smoother.  Eg: Adding the CSS  *{font-size:11px;} will actually change all the font sizes, instead of only some of them.

BTW:  Using <stylesheet src='..' /> is deprecated.  Ref:  http://code.google.com/webtoolkit/doc/latest/DevGuideUiCss.html#cssfiles

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/tNaPyUg6200J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment