brOOper / gwt-cal

Automatically exported from code.google.com/p/gwt-cal
0 stars 0 forks source link

Where can I modify the style of CSS in gwt-cal #49

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Bonjour,

   I see the style for calendar such as gwt-calendar,but I can not find 
the css file. where is it? thank you very much

Original issue reported on code.google.com by bienvenueqin@gmail.com on 19 Apr 2010 at 2:09

GoogleCodeExporter commented 8 years ago
The CSS files are embedded in the gwt-cal jar file. At compile-time, gwt moves 
the 
files into a folder that gwt creates. It is typically in /war/[your modules 
name/

I would not recommend editing this file, since whenever you compile it will get 
overwritten. Here is the approach I take (for gwt-cal and for any gwt widget)

1) Give my page's body tag an id, like this <body id="myProject">
2) Override specific styles for a widget in my own css file
example: #myProject ..gwt-cal .major-time-interval { ... }

If you look at the iCal theme in the demo project, you will see that I use this 
approach to override the default style of gwt's DatePicker to give it a Mac 
look & 
feel.

Original comment by Brad.Ryd...@gmail.com on 19 Apr 2010 at 4:41