Description
Enables styling your Griffon application with CSS using CSSBuilder.
Installation
The current version of griffon-css-builder-plugin is 0.4
To install just issue the following command
griffon install-plugin css-builder
Usage
- Define name: and/or cssClass: attributes on the nodes you wan to style using targeted CSS ids/selectors.
- Create as many stylesheets as needed, place then under griffon-app/resources
- Add the following code when you're ready to apply a stylesheet, you can do this at any time after the Views have been created
import griffon.builder.css.CSSDecorator CSSDecorator.decorate("style",rootComponentToBeStyled)
- As an alternative you can apply a style on the fly with
import griffon.builder.css.CSSDecorator // make all components have a white background def style = """ * { background-color: white; } """ CSSDecorator.applyStyle(style,rootComponentToBeStyled)
History
| Version | Date | Notes |
|---|---|---|
| 0.4 | 01-07-10 | Upgraded to CSSbuilder 0.4, fixes http://jira.codehaus.org/browse/GRIFFON-134 |
| 0.3 | 11-15-09 | Upgraded to CSSbuilder 0.3, Groovy expressions can be used as values of CSS rules |
| 0.2 | 06-13-09 | Upgraded to CSSbuilder 0.2, there are now CSS 72 rules to choose from |
| 0.1 | 06-11-09 | First release |


