The ability to provide custom Processors and validators as well as the inclusion of a DefaultValidator and optional validator.
The ability to use 10.percent
or 10 %_
to create percent measurements.
Used extension modules to extend String, Integer, and Number classes to enhance code completion and add new features.
This allows for the following syntax for example:
'div p.test a'.$ { /*DSL*/ }
or 'div p.test a'.sg { /*DSL*/ }
and 'aabbcc'.color //becomes a org.groocss.Color
Gradle GroocssTask now extends Copy task and supports -t option (requires Gradle 4)
Support for transitions using closures. Ex:
transition {flex '2s'} {borderColor '1s' ease '0'}
Improvements to the CSS Translator
The ability to import other groocss files is supported by importFile, importStream, and importString methods which take a parameter map and input. For example:
importFile otherCss.absoluteFile, linkColor: '#456789'
This would allow you to make a "template file" for example with variables replaced in multiple ways.
There are also "raw" and "comment" commands, for including raw CSS and comments respectively.
Last updated: 31 July 2019