Provides string extensions for GrooCSS to allow for static compilation and code completion.
Type Params | Return Type | Name and description |
---|---|---|
|
static StyleGroup |
$(String selector, Closure closure) Used for creating style-groups using id selector: allows 'a.selector'.$ {} syntax. |
|
static Color |
getColor(String str) Useful for colors: allows 'aabbcc'.color or even 'abc'.color syntax (color hex value). |
|
static String |
getUrl(String str) Useful for image urls: allows 'images/image.png'.url syntax. |
|
static GrooCSS |
groocss(String string, Config config = new Config(, Closure closure) Useful for starting a GrooCSS DSL without importing anything ('main.css'.groocss { CSS DSL }). |
|
static StyleGroup |
id(String selector, Closure closure) Used for creating style-groups using id selector: allows 'your_id'.id {} syntax. |
|
static KeyFrames |
keyframes(String name, Closure closure) Used for creating keyframes using name. |
|
static KeyFrames |
kf(String name, Closure closure) Used for creating keyframes using name. |
|
static MediaCSS |
media(String mediaRule, Closure closure) |
|
static StyleGroup |
sg(String selector, Closure closure) Used for creating style-groups using selector: allows 'body div.style'.sg {} syntax. |
|
static Color |
toColor(String str) |
Used for creating style-groups using id selector: allows 'a.selector'.$ {} syntax.
Useful for colors: allows 'aabbcc'.color or even 'abc'.color syntax (color hex value).
Useful for starting a GrooCSS DSL without importing anything ('main.css'.groocss { CSS DSL }). To use config use: 'main.css'.groocss(new Config()) { CSS DSL }.
Used for creating style-groups using id selector: allows 'your_id'.id {} syntax.
Used for creating keyframes using name.
Used for creating keyframes using name.
Used for creating style-groups using selector: allows 'body div.style'.sg {} syntax.