class GrooCSS extends Script
Entrance to DSL for converting code into CSS.
Modifiers | Name | Description |
---|---|---|
static class |
GrooCSS.Configurer |
Type | Name and description |
---|---|
ColorMethods |
colorMethods |
Config |
config Main config. |
MediaCSS |
css Main MediaCSS root. |
MediaCSS |
currentCss Current MediaCSS object used for processing. |
static ThreadLocal<GrooCSS> |
threadLocalInstance |
Underscore |
underscore |
Type Params | Return Type | Name and description |
---|---|---|
|
Selector |
$(def selector) Creates a selector from any given argument. |
|
StyleGroup |
$(String selector, Closure clos) Creates a new StyleGroup element and runs given closure on it. |
|
StyleGroup |
a(String sel = '', Closure clos) Hyperlink. |
|
Selectable |
a(Selectable... sel) Hyperlink. |
|
StyleGroup |
a_active(String sel = '', Closure clos) Hyperlink a:active. |
|
StyleGroup |
a_focus(String sel = '', Closure clos) Hyperlink a:focus. |
|
StyleGroup |
a_hover(String sel = '', Closure clos) Hyperlink a:hover. |
|
StyleGroup |
a_visited(String sel = '', Closure clos) Hyperlink a:visited. |
|
StyleGroup |
abbr(String sel = '', Closure clos) Abbreviation. |
|
Selectable |
abbr(Selectable... sel) Abbreviation. |
|
double |
abs(Number n) Returns the absolute value of a value. |
|
double |
acos(Number n) Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi. |
|
StyleGroup |
active(Closure closure) Pseudo-class: :active. |
|
StyleGroup |
address(String sel = '', Closure clos) Contact information. |
|
Selectable |
address(Selectable... sel) Contact information. |
|
StyleGroup |
area(String sel = '', Closure clos) Image-map hyperlink. |
|
Selectable |
area(Selectable... sel) Image-map hyperlink. |
|
StyleGroup |
article(String sel = '', Closure clos) Article. |
|
Selectable |
article(Selectable... sel) Article. |
|
StyleGroup |
aside(String sel = '', Closure clos) Tangential content. |
|
Selectable |
aside(Selectable... sel) Tangential content. |
|
double |
asin(Number n) Returns the arc sine of a value; the returned angle is in the range -pi/2 through pi/2. |
|
double |
atan(Number n) Returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2. |
|
double |
atan2(Number y, Number x) Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta). |
|
StyleGroup |
audio(String sel = '', Closure clos) Audio stream. |
|
Selectable |
audio(Selectable... sel) Audio stream. |
|
StyleGroup |
b(String sel = '', Closure clos) Offset text conventionally styled in bold. |
|
Selectable |
b(Selectable... sel) Offset text conventionally styled in bold. |
|
StyleGroup |
base(String sel = '', Closure clos) Base URL. |
|
Selectable |
base(Selectable... sel) Base URL. |
|
StyleGroup |
bdi(String sel = '', Closure clos) BiDi isolate. |
|
Selectable |
bdi(Selectable... sel) BiDi isolate. |
|
StyleGroup |
bdo(String sel = '', Closure clos) BiDi override. |
|
Selectable |
bdo(Selectable... sel) BiDi override. |
|
StyleGroup |
blockquote(String sel = '', Closure clos) Block quotation. |
|
Selectable |
blockquote(Selectable... sel) Block quotation. |
|
StyleGroup |
body(String sel = '', Closure clos) Document body. |
|
Selectable |
body(Selectable... sel) Document body. |
|
StyleGroup |
br(String sel = '', Closure clos) Line break. |
|
Selectable |
br(Selectable... sel) Line break. |
|
StyleGroup |
button(String sel = '', Closure clos) Button. |
|
Selectable |
button(Selectable... sel) Button. |
|
StyleGroup |
buttonButton(String sel = '', Closure clos) Button with no additional semantics. |
|
StyleGroup |
buttonReset(String sel = '', Closure clos) Reset button. |
|
StyleGroup |
buttonSubmit(String sel = '', Closure clos) Submit button. |
|
StyleGroup |
canvas(String sel = '', Closure clos) Canvas for dynamic graphics. |
|
Selectable |
canvas(Selectable... sel) Canvas for dynamic graphics. |
|
StyleGroup |
caption(String sel = '', Closure clos) Table title. |
|
Selectable |
caption(Selectable... sel) Table title. |
|
double |
cbrt(Number n) Returns the cube root of a double value. |
|
int |
ceiling(Number n) Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer. |
|
void |
charset(String charset) |
|
StyleGroup |
checked(Closure closure) Pseudo-class: :checked. |
|
StyleGroup |
cite(String sel = '', Closure clos) Cited title of a work. |
|
Selectable |
cite(Selectable... sel) Cited title of a work. |
|
StyleGroup |
code(String sel = '', Closure clos) Code fragment. |
|
Selectable |
code(Selectable... sel) Code fragment. |
|
StyleGroup |
col(String sel = '', Closure clos) Table column. |
|
Selectable |
col(Selectable... sel) Table column. |
|
StyleGroup |
colgroup(String sel = '', Closure clos) Table column group. |
|
Selectable |
colgroup(Selectable... sel) Table column group. |
|
StyleGroup |
command(String sel = '', Closure clos) Command. |
|
Selectable |
command(Selectable... sel) Command. |
|
StyleGroup |
commandCheckbox(String sel = '', Closure clos) State or option that can be toggled. |
|
StyleGroup |
commandCommand(String sel = '', Closure clos) Command with an associated action. |
|
StyleGroup |
commandRadio(String sel = '', Closure clos) Selection of one item from a list of items. |
|
Comment |
comment(String comment) Adds a comment to be included in output. |
|
static void |
convert(Config conf = new Config(, File inf, File out, String charset = "UTF-8", boolean addMeta = false) Converts from given file containing GrooCSS DSL to given out file as CSS. |
|
static String |
convert(Config conf = new Config(, String groocss, String charset1 = "UTF-8", boolean addMeta = true) Processes a given groocss string and outputs as CSS string. |
|
static void |
convert(Config conf = new Config(, InputStream inf, OutputStream out, String charset1 = "UTF-8", boolean addMeta = false) Processes a given InputStream and outputs to given OutputStream. |
|
static void |
convert(Config conf = new Config(, Reader reader, PrintWriter writer, boolean addMeta = false) Processes a given Reader and outputs to given PrintWriter. |
|
def |
convert(def value, def units) Convert a number from one unit into another. |
|
static void |
convertFile(Config conf = new Config(, String inName, String outName) Converts from given filename containing GrooCSS DSL to given out filename as CSS. |
|
static void |
convertFile(Config conf = new Config(, File inf, File out) Converts from given file containing GrooCSS DSL to given out file as CSS. |
|
Number |
convertNum(Number num, String conversion) |
|
static void |
convertWithoutBase(File inf, File out) Converts given file which must explicitly create a GrooCSS instance using process(Closure) for example. |
|
static void |
convertWithoutBase(InputStream inf, OutputStream out, String charset1 = "UTF-8") Processes a given InputStream and outputs to given OutputStream assuming input script returns a GrooCSS. |
|
static void |
convertWithoutBase(Reader reader, PrintWriter writer) Processes a given Reader and outputs to given PrintWriter assuming input script returns a GrooCSS. |
|
double |
cos(Number angle) Returns the trigonometric cosine of an angle (in radians). |
|
StyleGroup |
datalist(String sel = '', Closure clos) Predefined options for other controls. |
|
Selectable |
datalist(Selectable... sel) Predefined options for other controls. |
|
StyleGroup |
dd(String sel = '', Closure clos) Description or value. |
|
Selectable |
dd(Selectable... sel) Description or value. |
|
StyleGroup |
defaultPC(Closure closure) Pseudo-class: :default. |
|
StyleGroup |
del(String sel = '', Closure clos) Deleted text. |
|
Selectable |
del(Selectable... sel) Deleted text. |
|
StyleGroup |
details(String sel = '', Closure clos) Control for additional on-demand information. |
|
Selectable |
details(Selectable... sel) Control for additional on-demand information. |
|
StyleGroup |
dfn(String sel = '', Closure clos) Defining instance. |
|
Selectable |
dfn(Selectable... sel) Defining instance. |
|
StyleGroup |
dialog(String sel = '', Closure clos) Defines a dialog box or window |
|
Selectable |
dialog(Selectable... sel) Defines a dialog box or window. |
|
StyleGroup |
disabled(Closure closure) Pseudo-class: :disabled. |
|
StyleGroup |
div(String sel = '', Closure clos) Generic flow container. |
|
Selectable |
div(Selectable... sel) Generic flow container. |
|
StyleGroup |
dl(String sel = '', Closure clos) Description list. |
|
Selectable |
dl(Selectable... sel) Description list. |
|
StyleGroup |
dt(String sel = '', Closure clos) Term or name. |
|
Selectable |
dt(Selectable... sel) Term or name. |
|
StyleGroup |
em(String sel = '', Closure clos) Emphatic stress. |
|
Selectable |
em(Selectable... sel) Emphatic stress. |
|
StyleGroup |
embed(String sel = '', Closure clos) Integration point for plugins. |
|
Selectable |
embed(Selectable... sel) Integration point for plugins. |
|
StyleGroup |
empty(Closure closure) Pseudo-class: :empty. |
|
StyleGroup |
enabled(Closure closure) Pseudo-class: :enabled. |
|
StyleGroup |
even(Closure closure) Pseudo-class: "nth-child(even)". |
|
StyleGroup |
fieldset(String sel = '', Closure clos) Set of related form controls. |
|
Selectable |
fieldset(Selectable... sel) Set of related form controls. |
|
StyleGroup |
figcaption(String sel = '', Closure clos) Figure caption. |
|
Selectable |
figcaption(Selectable... sel) Figure caption. |
|
StyleGroup |
figure(String sel = '', Closure clos) Figure with optional caption. |
|
Selectable |
figure(Selectable... sel) Figure with optional caption. |
|
StyleGroup |
firstChild(Closure closure) Pseudo-class: :first-child. |
|
StyleGroup |
firstOfType(Closure closure) Pseudo-class: :first-of-type. |
|
int |
floor(Number n) Returns the largest (closest to positive infinity) double value that is less than or equal to the argument and is equal to a mathematical integer. |
|
StyleGroup |
focus(Closure closure) Pseudo-class: :focus. |
|
FontFace |
fontFace(Closure clos) Creates a new @font-face element and runs given closure on it. |
|
StyleGroup |
footer(String sel = '', Closure clos) Footer. |
|
Selectable |
footer(Selectable... sel) Footer. |
|
StyleGroup |
form(String sel = '', Closure clos) User-submittable form. |
|
Selectable |
form(Selectable... sel) User-submittable form. |
|
Selector |
getA() |
|
Selector |
getAbbr() |
|
PseudoClass |
getActive() Pseudo-class: :active. |
|
Selector |
getAddress() |
|
Selector |
getArea() |
|
Selector |
getArticle() |
|
Selector |
getAside() |
|
Selector |
getAudio() |
|
Selector |
getB() |
|
Selector |
getBase() |
|
Selector |
getBdi() |
|
Selector |
getBdo() |
|
Selector |
getBlockquote() |
|
Selector |
getBody() |
|
Selector |
getBr() |
|
Selector |
getButton() |
|
Selector |
getCanvas() |
|
Selector |
getCaption() |
|
PseudoClass |
getChecked() Pseudo-class: :checked. |
|
Selector |
getCite() |
|
Selector |
getCode() |
|
Selector |
getCol() |
|
Selector |
getColgroup() |
|
Selector |
getCommand() |
|
Selector |
getDatalist() |
|
Selector |
getDd() |
|
PseudoClass |
getDefault() Pseudo-class: :default. |
|
Selector |
getDel() |
|
Selector |
getDetails() |
|
Selector |
getDfn() |
|
Selector |
getDialog() |
|
PseudoClass |
getDisabled() Pseudo-class: :disabled. |
|
Selector |
getDiv() |
|
Selector |
getDl() |
|
Selector |
getDt() |
|
Selector |
getEm() |
|
Selector |
getEmbed() |
|
PseudoClass |
getEmpty() Pseudo-class: :empty. |
|
PseudoClass |
getEnabled() Pseudo-class: :enabled. |
|
PseudoClass |
getEven() Pseudo-class: :nth-child(even). |
|
Selector |
getFieldset() |
|
Selector |
getFigcaption() |
|
Selector |
getFigure() |
|
PseudoClass |
getFirstChild() Pseudo-class: :first-child. |
|
PseudoClass |
getFirstOfType() Pseudo-class: :first-of-type. |
|
PseudoClass |
getFocus() Pseudo-class: :focus. |
|
Selector |
getFooter() |
|
Selector |
getForm() |
|
Selector |
getH1() |
|
Selector |
getH2() |
|
Selector |
getH3() |
|
Selector |
getH4() |
|
Selector |
getH5() |
|
Selector |
getH6() |
|
Selector |
getHeader() |
|
Selector |
getHgroup() |
|
PseudoClass |
getHover() Pseudo-class: :hover. |
|
Selector |
getHr() |
|
Selector |
getHtml() |
|
Selector |
getI() |
|
Selector |
getIframe() |
|
Measurement |
getImageHeight(String filename) |
|
String |
getImageSize(String filename) |
|
Measurement |
getImageWidth(String filename) |
|
Selector |
getImg() |
|
PseudoClass |
getInRange() Pseudo-class: :in-range. |
|
PseudoClass |
getIndeterminate() Pseudo-class: :indeterminate. |
|
Selector |
getInput() |
|
Selector |
getIns() |
|
PseudoClass |
getInvalid() Pseudo-class: :invalid. |
|
String |
getIso8859() |
|
Selector |
getKbd() |
|
Selector |
getKeygen() |
|
Selector |
getLabel() |
|
PseudoClass |
getLastChild() Pseudo-class: :last-child. |
|
PseudoClass |
getLastOfType() Pseudo-class: :last-of-type. |
|
Selector |
getLegend() |
|
Selector |
getLi() |
|
PseudoClass |
getLink() Pseudo-class: :link. |
|
Selector |
getMain() |
|
Selector |
getMap() |
|
Selector |
getMark() |
|
Selector |
getMath() |
|
Selector |
getMenu() |
|
Selector |
getMeter() |
|
Selector |
getNav() |
|
Selector |
getNoscript() |
|
Selector |
getObject() |
|
PseudoClass |
getOdd() Pseudo-class: :nth-child(odd). |
|
Selector |
getOl() |
|
PseudoClass |
getOnlyChild() Pseudo-class: :only-child. |
|
PseudoClass |
getOnlyOfType() Pseudo-class: :only-of-type. |
|
Selector |
getOptgroup() |
|
Selector |
getOption() |
|
PseudoClass |
getOptional() Pseudo-class: :optional. |
|
PseudoClass |
getOutOfRange() Pseudo-class: :out-of-range. |
|
Selector |
getOutput() |
|
Selector |
getP() |
|
Selector |
getParam() |
|
Selector |
getPre() |
|
Selector |
getProgress() |
|
Selector |
getQ() |
|
PseudoClass |
getReadOnly() Pseudo-class: :read-only. |
|
PseudoClass |
getReadWrite() Pseudo-class: :read-write. |
|
PseudoClass |
getRequired() Pseudo-class: :required. |
|
PseudoClass |
getRoot() Pseudo-class: :root. |
|
Selector |
getRp() |
|
Selector |
getRt() |
|
Selector |
getRuby() |
|
Selector |
getS() |
|
Selector |
getSamp() |
|
Selector |
getScript() |
|
Selector |
getSection() |
|
Selector |
getSelect() |
|
Selector |
getSmall() |
|
Selector |
getSource() |
|
Selector |
getSpan() |
|
Selector |
getStrong() |
|
Selector |
getStyle() |
|
Selector |
getSub() |
|
Selector |
getSummary() |
|
Selector |
getSup() |
|
Selector |
getSvg() |
|
Selector |
getTable() |
|
PseudoClass |
getTarget() Pseudo-class: :target. |
|
Selector |
getTbody() |
|
Selector |
getTd() |
|
Selector |
getTextarea() |
|
Selector |
getTfoot() |
|
Selector |
getTh() |
|
Selector |
getThead() |
|
Selector |
getTime() |
|
Selector |
getTitle() |
|
Selector |
getTr() |
|
Selector |
getTrack() |
|
Selector |
getU() |
|
Selector |
getUl() |
|
String |
getUnit(def value) Returns units of a number. |
|
String |
getUtf16() |
|
String |
getUtf8() |
|
PseudoClass |
getValid() Pseudo-class: :valid. |
|
Selector |
getVar() |
|
Selector |
getVideo() |
|
PseudoClass |
getVisited() Pseudo-class: :visited. |
|
Selector |
getWbr() |
|
Underscore |
get_() |
|
StyleGroup |
h1(String sel = '', Closure clos) Heading. |
|
Selectable |
h1(Selectable... sel) Heading. |
|
StyleGroup |
h2(String sel = '', Closure clos) Heading. |
|
Selectable |
h2(Selectable... sel) Heading. |
|
StyleGroup |
h3(String sel = '', Closure clos) Heading. |
|
Selectable |
h3(Selectable... sel) Heading. |
|
StyleGroup |
h4(String sel = '', Closure clos) Heading. |
|
Selectable |
h4(Selectable... sel) Heading. |
|
StyleGroup |
h5(String sel = '', Closure clos) Heading. |
|
Selectable |
h5(Selectable... sel) Heading. |
|
StyleGroup |
h6(String sel = '', Closure clos) Heading. |
|
Selectable |
h6(Selectable... sel) Heading. |
|
StyleGroup |
head(String sel = '', Closure clos) Document metadata container. |
|
Selectable |
head(Selectable... sel) Document metadata container. |
|
StyleGroup |
header(String sel = '', Closure clos) Header. |
|
Selectable |
header(Selectable... sel) Header. |
|
StyleGroup |
hgroup(String sel = '', Closure clos) Heading group. |
|
Selectable |
hgroup(Selectable... sel) Heading group. |
|
StyleGroup |
hover(Closure closure) Pseudo-class: :hover. |
|
StyleGroup |
hr(String sel = '', Closure clos) Thematic break. |
|
Selectable |
hr(Selectable... sel) Thematic break. |
|
StyleGroup |
html(String sel = '', Closure clos) Root element. |
|
Selectable |
html(Selectable... sel) Root element. |
|
StyleGroup |
i(String sel = '', Closure clos) Offset text conventionally styled in italic. |
|
Selectable |
i(Selectable... sel) Offset text conventionally styled in italic. |
|
StyleGroup |
iframe(String sel = '', Closure clos) Nested browsing context (inline frame). |
|
Selectable |
iframe(Selectable... sel) Nested browsing context (inline frame). |
|
StyleGroup |
img(String sel = '', Closure clos) Image. |
|
Selectable |
img(Selectable... sel) Image. |
|
MediaCSS |
importFile(Map params = [:], String filename) Imports given Groocss file at filename. |
|
MediaCSS |
importFile(Map params = [:], File file) Imports given Groocss file. |
|
MediaCSS |
importReader(Map params = [:], Reader reader) Imports given Groocss input using given Reader. |
|
MediaCSS |
importStream(Map params = [:], InputStream stream) Imports given Groocss file using given InputStream. |
|
MediaCSS |
importString(Map params = [:], String groocss) Imports given Groocss. |
|
StyleGroup |
inRange(Closure closure) Pseudo-class: :in-range. |
|
StyleGroup |
indeterminate(Closure closure) Pseudo-class: :indeterminate. |
|
void |
initMetaClasses(boolean addNumberMeta = true, boolean addStringMeta = true) Called when addMeta is true (parameter to "convert") which is used by Gradle plugin. |
|
StyleGroup |
input(String sel = '', Closure clos) Input control. |
|
Selectable |
input(Selectable... sel) Input control. |
|
StyleGroup |
inputButton(String sel = '', Closure clos) Button. |
|
StyleGroup |
inputCheckbox(String sel = '', Closure clos) Checkbox. |
|
StyleGroup |
inputColor(String sel = '', Closure clos) Color-well control. |
|
StyleGroup |
inputDate(String sel = '', Closure clos) Date input control. |
|
StyleGroup |
inputDatetime(String sel = '', Closure clos) Global date-and-time input control. |
|
StyleGroup |
inputDatetimeLocal(String sel = '', Closure clos) Local date-and-time input control. |
|
StyleGroup |
inputEmail(String sel = '', Closure clos) E-mail address input control. |
|
StyleGroup |
inputFile(String sel = '', Closure clos) File upload control. |
|
StyleGroup |
inputHidden(String sel = '', Closure clos) Hidden input control. |
|
StyleGroup |
inputImage(String sel = '', Closure clos) Image-coordinates input control. |
|
StyleGroup |
inputMonth(String sel = '', Closure clos) Year-and-month input control. |
|
StyleGroup |
inputNumber(String sel = '', Closure clos) Number input control. |
|
StyleGroup |
inputPassword(String sel = '', Closure clos) Password-input field. |
|
StyleGroup |
inputRadio(String sel = '', Closure clos) Radio button. |
|
StyleGroup |
inputRange(String sel = '', Closure clos) Imprecise number-input control. |
|
StyleGroup |
inputReset(String sel = '', Closure clos) Reset button. |
|
StyleGroup |
inputSearch(String sel = '', Closure clos) Search field. |
|
StyleGroup |
inputSubmit(String sel = '', Closure clos) Submit button. |
|
StyleGroup |
inputTel(String sel = '', Closure clos) Telephone-number-input field. |
|
StyleGroup |
inputText(String sel = '', Closure clos) Text-input field. |
|
StyleGroup |
inputTime(String sel = '', Closure clos) Time input control. |
|
StyleGroup |
inputUrl(String sel = '', Closure clos) URL input control. |
|
StyleGroup |
inputWeek(String sel = '', Closure clos) Year-and-week input control. |
|
StyleGroup |
ins(String sel = '', Closure clos) Inserted text. |
|
Selectable |
ins(Selectable... sel) Inserted text. |
|
StyleGroup |
invalid(Closure closure) Pseudo-class: :invalid. |
|
StyleGroup |
kbd(String sel = '', Closure clos) User input. |
|
Selectable |
kbd(Selectable... sel) User input. |
|
KeyFrames |
keyframes(String name, Closure clos) Calls kf(java.lang.String, groovy.lang.Closure). |
|
StyleGroup |
keygen(String sel = '', Closure clos) Key-pair generator/input control. |
|
Selectable |
keygen(Selectable... sel) Key-pair generator/input control. |
|
KeyFrames |
kf(String name, Closure clos) Creates a new KeyFrames element and runs given closure on it. |
|
StyleGroup |
label(String sel = '', Closure clos) Caption for a form control. |
|
Selectable |
label(Selectable... sel) Caption for a form control. |
|
StyleGroup |
lang(def languageCode, Closure clos) Pseudo-class: :lang. |
|
PseudoClass |
lang(def languageCode) Pseudo-class: :lang. |
|
StyleGroup |
lastChild(Closure closure) Pseudo-class: :last-child. |
|
StyleGroup |
lastOfType(Closure closure) Pseudo-class: :last-of-type. |
|
StyleGroup |
legend(String sel = '', Closure clos) Title or explanatory caption. |
|
Selectable |
legend(Selectable... sel) Title or explanatory caption. |
|
StyleGroup |
li(String sel = '', Closure clos) List item. |
|
Selectable |
li(Selectable... sel) List item. |
|
StyleGroup |
link(String sel = '', Closure clos) Inter-document relationship metadata. |
|
Selectable |
link(Selectable... sel) Inter-document relationship metadata. |
|
StyleGroup |
linkPseudoClass(Closure closure) Pseudo-class: :link. |
|
double |
log(Number n) Returns the natural logarithm (base e) of a double value. |
|
double |
log10(Number n) Returns the base 10 logarithm of a double value. |
|
StyleGroup |
main(String sel = '', Closure clos) Main definition. |
|
Selectable |
main(Selectable... sel) Main definition. |
|
StyleGroup |
map(String sel = '', Closure clos) Image-map definition. |
|
Selectable |
map(Selectable... sel) Image-map definition. |
|
StyleGroup |
mark(String sel = '', Closure clos) Marked (highlighted) text. |
|
Selectable |
mark(Selectable... sel) Marked (highlighted) text. |
|
StyleGroup |
math(String sel = '', Closure clos) Math element. |
|
Selectable |
math(Selectable... sel) Math element. |
|
MediaCSS |
media(String mediaRule, Closure clos) |
|
StyleGroup |
menu(String sel = '', Closure clos) List of commands. |
|
Selectable |
menu(Selectable... sel) List of commands. |
|
StyleGroup |
meter(String sel = '', Closure clos) Scalar gauge. |
|
Selectable |
meter(Selectable... sel) Scalar gauge. |
|
StyleGroup |
nav(String sel = '', Closure clos) Group of navigational links. |
|
Selectable |
nav(Selectable... sel) Group of navigational links. |
|
Selector |
newElement(String name) |
|
PseudoClass |
newPseudoClass(String value) |
|
StyleGroup |
noscript(String sel = '', Closure clos) Fallback content for script. |
|
Selectable |
noscript(Selectable... sel) Fallback content for script. |
|
StyleGroup |
not(def notStyleGroup, Closure clos) Pseudo-class: :not( @DelegatesTo(value = StyleGroup, strategy = Closure.DELEGATE_FIRST) Closure closure). |
|
PseudoClass |
not(def notStyleGroup) Pseudo-class: :not(). |
|
StyleGroup |
nthChild(def n, Closure closure) Pseudo-class: :nth-child. |
|
PseudoClass |
nthChild(def n) Pseudo-class: :nth-child. |
|
StyleGroup |
nthLastChild(def n, Closure clos) Pseudo-class: :nth-last-child. |
|
PseudoClass |
nthLastChild(def n) Pseudo-class: :nth-last-child. |
|
StyleGroup |
nthLastOfType(def n, Closure clos) Pseudo-class: :nth-last-of-type. |
|
PseudoClass |
nthLastOfType(def n) Pseudo-class: :nth-last-of-type. |
|
StyleGroup |
nthOfType(def n, Closure closure) Pseudo-class: :nth-of-type. |
|
PseudoClass |
nthOfType(def n) Pseudo-class: :nth-of-type. |
|
StyleGroup |
object(String sel = '', Closure clos) Generic external content. |
|
Selectable |
object(Selectable... sel) Generic external content. |
|
StyleGroup |
odd(Closure closure) Pseudo-class: "nth-child(odd)". |
|
StyleGroup |
ol(String sel = '', Closure clos) Ordered list. |
|
Selectable |
ol(Selectable... sel) Ordered list. |
|
StyleGroup |
onlyChild(Closure closure) Pseudo-class: :only-child. |
|
StyleGroup |
onlyOfType(Closure closure) Pseudo-class: :only-of-type. |
|
StyleGroup |
optgroup(String sel = '', Closure clos) Group of options. |
|
Selectable |
optgroup(Selectable... sel) Group of options. |
|
StyleGroup |
option(String sel = '', Closure clos) Option. |
|
Selectable |
option(Selectable... sel) Option. |
|
StyleGroup |
optional(Closure closure) Pseudo-class: :optional. |
|
StyleGroup |
outOfRange(Closure closure) Pseudo-class: :out-of-range. |
|
StyleGroup |
output(String sel = '', Closure clos) Result of a calculation in a form. |
|
Selectable |
output(Selectable... sel) Result of a calculation in a form. |
|
StyleGroup |
p(String sel = '', Closure clos) Paragraph. |
|
Selectable |
p(Selectable... sel) Paragraph. |
|
StyleGroup |
param(String sel = '', Closure clos) Initialization parameters for plugins. |
|
Selectable |
param(Selectable... sel) Initialization parameters for plugins. |
|
double |
pow(Number n, Number pow) Returns the value of the first argument raised to the power of the second argument. |
|
StyleGroup |
pre(String sel = '', Closure clos) Preformatted text. |
|
Selectable |
pre(Selectable... sel) Preformatted text. |
|
static void |
process(Config conf = new Config(, InputStream ins, OutputStream out) Processes a given InputStream and outputs to given OutputStream. |
|
static void |
process(Config conf = new Config(, Reader reader, PrintWriter writer) Processes a given Reader and outputs to given PrintWriter. |
|
static String |
process(Config conf = new Config(, String groocss, String charset1 = "UTF-8", boolean addMeta = true) Processes a given groocss string and outputs as CSS string. |
|
static GrooCSS |
process(Config config = new Config(, Closure clos) Processes the given closure with given optional config. |
|
StyleGroup |
progress(String sel = '', Closure clos) Progress indicator. |
|
Selectable |
progress(Selectable... sel) Progress indicator. |
|
StyleGroup |
q(String sel = '', Closure clos) Quoted text. |
|
Selectable |
q(Selectable... sel) Quoted text. |
|
Raw |
raw(String raw) |
|
StyleGroup |
readOnly(Closure closure) Pseudo-class: :read-only. |
|
StyleGroup |
readWrite(Closure closure) Pseudo-class: :read-write. |
|
StyleGroup |
required(Closure closure) Pseudo-class: :required. |
|
StyleGroup |
root(Closure closure) Pseudo-class: :root. |
|
StyleGroup |
rp(String sel = '', Closure clos) Ruby parenthesis. |
|
Selectable |
rp(Selectable... sel) Ruby parenthesis. |
|
StyleGroup |
rt(String sel = '', Closure clos) Ruby text. |
|
Selectable |
rt(Selectable... sel) Ruby text. |
|
StyleGroup |
ruby(String sel = '', Closure clos) Ruby annotation. |
|
Selectable |
ruby(Selectable... sel) Ruby annotation. |
|
def |
run() |
|
static GrooCSS |
runBlock(Config conf = new Config(, Closure clos) Processes the given closure with given optional config. |
|
StyleGroup |
s(String sel = '', Closure clos) Struck text. |
|
Selectable |
s(Selectable... sel) Struck text. |
|
StyleGroup |
samp(String sel = '', Closure clos) (sample) output. |
|
Selectable |
samp(Selectable... sel) (sample) output. |
|
StyleGroup |
section(String sel = '', Closure clos) Section. |
|
Selectable |
section(Selectable... sel) Section. |
|
StyleGroup |
sel(String selector, Closure<StyleGroup> clos) Creates a new StyleGroup element and runs given closure on it. |
|
Selector |
sel(def selector) Creates a selector from any given argument. |
|
StyleGroup |
sel(Selector selector, Closure<StyleGroup> clos) Creates a new StyleGroup element and runs given closure on it. |
|
StyleGroup |
select(String sel = '', Closure clos) Option-selection form control. |
|
Selectable |
select(Selectable... sel) Option-selection form control. |
|
void |
setConfig(Config config1) Makes sure that config passes through to root css. |
|
StyleGroup |
sg(String selector, Closure clos) Creates a new StyleGroup element and runs given closure on it. |
|
StyleGroup |
sg(Selector selector, Closure clos) Creates a new StyleGroup element and runs given closure on it. |
|
StyleGroup |
sg(List selectors, Closure clos) Creates a new StyleGroup element, with all selectors in the given list joined with commas. |
|
double |
sin(Number angle) Returns the trigonometric sine of an angle (in radians). |
|
StyleGroup |
small(String sel = '', Closure clos) Small print. |
|
Selectable |
small(Selectable... sel) Small print. |
|
StyleGroup |
source(String sel = '', Closure clos) Media source. |
|
Selectable |
source(Selectable... sel) Media source. |
|
StyleGroup |
span(String sel = '', Closure clos) Generic span. |
|
Selectable |
span(Selectable... sel) Generic span. |
|
double |
sqrt(Number n) Returns the correctly rounded positive square root of a double value. |
|
static String |
stringify(Number converted) Converts number to string in a sensible format. |
|
StyleGroup |
strong(String sel = '', Closure clos) Strong importance. |
|
Selectable |
strong(Selectable... sel) Strong importance. |
|
Style |
style(Closure clos) |
|
Style |
style(String name, Object value) Creates a Style with given name and value. |
|
StyleGroup |
styles(Closure<StyleGroup> clos) Creates an unattached StyleGroup object, useful for adding Styles to a StyleGroup conditionally or for reusing a group of styles several times. |
|
StyleGroup |
sub(String sel = '', Closure clos) Subscript. |
|
Selectable |
sub(Selectable... sel) Subscript. |
|
StyleGroup |
summary(String sel = '', Closure clos) Summary, caption, or legend for a details control. |
|
Selectable |
summary(Selectable... sel) Summary, caption, or legend for a details control. |
|
StyleGroup |
sup(String sel = '', Closure clos) Superscript. |
|
Selectable |
sup(Selectable... sel) Superscript. |
|
StyleGroup |
svg(String sel = '', Closure clos) Scalable vector graphics. |
|
Selectable |
svg(Selectable... sel) Scalable vector graphics. |
|
StyleGroup |
table(String sel = '', Closure clos) Table. |
|
Selectable |
table(Selectable... sel) Table. |
|
double |
tan(Number angle) Returns the trigonometric tangent of an angle (in radians). |
|
StyleGroup |
target(Closure closure) Pseudo-class: :target. |
|
StyleGroup |
tbody(String sel = '', Closure clos) Table row group. |
|
Selectable |
tbody(Selectable... sel) Table row group. |
|
StyleGroup |
td(String sel = '', Closure clos) Table cell. |
|
Selectable |
td(Selectable... sel) Table cell. |
|
StyleGroup |
textarea(String sel = '', Closure clos) Text input area. |
|
Selectable |
textarea(Selectable... sel) Text input area. |
|
StyleGroup |
tfoot(String sel = '', Closure clos) Table footer row group. |
|
Selectable |
tfoot(Selectable... sel) Table footer row group. |
|
StyleGroup |
th(String sel = '', Closure clos) Table header cell. |
|
Selectable |
th(Selectable... sel) Table header cell. |
|
StyleGroup |
thead(String sel = '', Closure clos) Table heading group. |
|
Selectable |
thead(Selectable... sel) Table heading group. |
|
StyleGroup |
time(String sel = '', Closure clos) Date and/or time. |
|
Selectable |
time(Selectable... sel) Date and/or time. |
|
StyleGroup |
title(String sel = '', Closure clos) Document title. |
|
Selectable |
title(Selectable... sel) Document title. |
|
double |
toDegrees(Number angrad) Converts an angle measured in radians to an approximately equivalent angle measured in degrees. |
|
double |
toRadians(Number angdeg) Converts an angle measured in degrees to an approximately equivalent angle measured in radians. |
|
String |
toString() |
|
StyleGroup |
tr(String sel = '', Closure clos) Table row. |
|
Selectable |
tr(Selectable... sel) Table row. |
|
StyleGroup |
track(String sel = '', Closure clos) Supplementary media track. |
|
Selectable |
track(Selectable... sel) Supplementary media track. |
|
StyleGroup |
u(String sel = '', Closure clos) Offset text conventionally styled with an underline. |
|
Selectable |
u(Selectable... sel) Offset text conventionally styled with an underline. |
|
StyleGroup |
ul(String sel = '', Closure clos) Unordered list. |
|
Selectable |
ul(Selectable... sel) Unordered list. |
|
def |
unit(def value, def units = null) Remove or change the unit of a dimension. |
|
StyleGroup |
valid(Closure closure) Pseudo-class: :valid. |
|
StyleGroup |
var(String sel = '', Closure clos) Variable or placeholder text. |
|
Selectable |
var(Selectable... sel) Variable or placeholder text. |
|
StyleGroup |
video(String sel = '', Closure clos) Video. |
|
Selectable |
video(Selectable... sel) Video. |
|
StyleGroup |
visited(Closure closure) Pseudo-class: :visited. |
|
StyleGroup |
wbr(String sel = '', Closure clos) Line-break opportunity. |
|
Selectable |
wbr(Selectable... sel) Line-break opportunity. |
|
static GrooCSS.Configurer |
withConfig(Closure<Configurer> closure) |
|
StyleGroup |
withPseudoClass(String pseudoClass, Closure closure) |
|
void |
writeTo(File f) Writes the CSS to the given file. |
|
void |
writeToFile(String filename) Writes the CSS to the given file. |
Methods inherited from class | Name |
---|---|
class Script |
getBinding, setBinding, evaluate, evaluate, invokeMethod, println, println, run, run, getProperty, setProperty, print, printf, printf, getMetaClass, setMetaClass, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class GroovyObjectSupport |
invokeMethod, getMetaClass, setMetaClass, getProperty, setProperty, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Main config.
Main MediaCSS root.
Current MediaCSS object used for processing.
Used within keyframes block such as 50% { opacity: 1 }.
Creates a selector from any given argument. Same as sel(java.lang.Object).
Creates a new StyleGroup element and runs given closure on it.
Hyperlink.
Hyperlink.
Hyperlink a:active.
Hyperlink a:focus.
Hyperlink a:hover.
Hyperlink a:visited.
Abbreviation.
Abbreviation.
Returns the absolute value of a value.
Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.
Pseudo-class: :active.
Contact information.
Contact information.
Image-map hyperlink.
Image-map hyperlink.
Article.
Article.
Tangential content.
Tangential content.
Returns the arc sine of a value; the returned angle is in the range -pi/2 through pi/2.
Returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2.
Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta).
Audio stream.
Audio stream.
Offset text conventionally styled in bold.
Offset text conventionally styled in bold.
Base URL.
Base URL.
BiDi isolate.
BiDi isolate.
BiDi override.
BiDi override.
Block quotation.
Block quotation.
Document body.
Document body.
Line break.
Line break.
Button.
Button.
Button with no additional semantics.
Reset button.
Submit button.
Canvas for dynamic graphics.
Canvas for dynamic graphics.
Table title.
Table title.
Returns the cube root of a double value.
Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer.
Pseudo-class: :checked.
Cited title of a work.
Cited title of a work.
Code fragment.
Code fragment.
Table column.
Table column.
Table column group.
Table column group.
Command.
Command.
State or option that can be toggled.
Command with an associated action.
Selection of one item from a list of items.
Converts from given file containing GrooCSS DSL to given out file as CSS.
conf
- Optional Config object for configuration.inf
- Input file with GrooCSS code.out
- Output file of resulting CSS.charset
- Charset of file to read (UTF-8 by default).addMeta
- Tells GrooCSS to augment String and Integer classes using metaClass (false by default).Processes a given groocss string and outputs as CSS string.
conf
- Optional Config object for configuration.groocss
- Input file with GrooCSS code.charset1
- Charset to use (UTF-8 by default).addMeta
- Tells GrooCSS to augment String and Integer classes using metaClass (true by default).Processes a given InputStream and outputs to given OutputStream.
conf
- Optional Config object for configuration.inf
- Input file stream with GrooCSS code.out
- Output file stream of resulting CSS.charset1
- Charset of file to read (UTF-8 by default).addMeta
- Tells GrooCSS to augment String and Integer classes using metaClass (false by default).Processes a given Reader and outputs to given PrintWriter.
conf
- Optional Config object for configuration.reader
- Input file with GrooCSS code.writer
- Output file of resulting CSS.addMeta
- Tells GrooCSS to augment String and Integer classes using metaClass (false by default).Convert a number from one unit into another. Supports sizes (in,pt,pc,mm,cm,m), time (m,ms) and rad/deg.
Converts from given filename containing GrooCSS DSL to given out filename as CSS.
conf
- Optional Config object for configuration.inName
- In filename.outName
- Out filename of resulting CSS.Converts from given file containing GrooCSS DSL to given out file as CSS.
conf
- Optional Config object for configuration.inf
- Input file with GrooCSS code.out
- Output file of resulting CSS.Converts given file which must explicitly create a GrooCSS instance using process(Closure) for example.
inf
- Input file containing a GrooCSS.process{} block of code or ''.process{} or similar.out
- Output file of resulting CSS.Processes a given InputStream and outputs to given OutputStream assuming input script returns a GrooCSS.
Processes a given Reader and outputs to given PrintWriter assuming input script returns a GrooCSS.
Returns the trigonometric cosine of an angle (in radians).
Predefined options for other controls.
Predefined options for other controls.
Description or value.
Description or value.
Pseudo-class: :default.
Deleted text.
Deleted text.
Control for additional on-demand information.
Control for additional on-demand information.
Defining instance.
Defining instance.
Defines a dialog box or window
Defines a dialog box or window.
Pseudo-class: :disabled.
Generic flow container.
Generic flow container.
Description list.
Description list.
Term or name.
Term or name.
Emphatic stress.
Emphatic stress.
Integration point for plugins.
Integration point for plugins.
Pseudo-class: :empty.
Pseudo-class: :enabled.
Pseudo-class: "nth-child(even)".
Set of related form controls.
Set of related form controls.
Figure caption.
Figure caption.
Figure with optional caption.
Figure with optional caption.
Pseudo-class: :first-child.
Pseudo-class: :first-of-type.
Returns the largest (closest to positive infinity) double value that is less than or equal to the argument and is equal to a mathematical integer.
Pseudo-class: :focus.
Creates a new @font-face element and runs given closure on it.
Footer.
Footer.
User-submittable form.
User-submittable form.
Pseudo-class: :active.
Pseudo-class: :checked.
Pseudo-class: :default.
Pseudo-class: :disabled.
Pseudo-class: :empty.
Pseudo-class: :enabled.
Pseudo-class: :nth-child(even).
Pseudo-class: :first-child.
Pseudo-class: :first-of-type.
Pseudo-class: :focus.
Pseudo-class: :hover.
Pseudo-class: :in-range.
Pseudo-class: :indeterminate.
Pseudo-class: :invalid.
Pseudo-class: :last-child.
Pseudo-class: :last-of-type.
Pseudo-class: :link.
Pseudo-class: :nth-child(odd).
Pseudo-class: :only-child.
Pseudo-class: :only-of-type.
Pseudo-class: :optional.
Pseudo-class: :out-of-range.
Pseudo-class: :read-only.
Pseudo-class: :read-write.
Pseudo-class: :required.
Pseudo-class: :root.
Pseudo-class: :target.
Pseudo-class: :valid.
Pseudo-class: :visited.
Heading.
Heading.
Heading.
Heading.
Heading.
Heading.
Heading.
Heading.
Heading.
Heading.
Heading.
Heading.
Document metadata container.
Document metadata container.
Header.
Header.
Heading group.
Heading group.
Pseudo-class: :hover.
Thematic break.
Thematic break.
Root element.
Root element.
Offset text conventionally styled in italic.
Offset text conventionally styled in italic.
Nested browsing context (inline frame).
Nested browsing context (inline frame).
Image.
Image.
Imports given Groocss input using given Reader.
Imports given Groocss file using given InputStream.
Pseudo-class: :in-range.
Pseudo-class: :indeterminate.
Called when addMeta is true (parameter to "convert") which is used by Gradle plugin.
Input control.
Input control.
Button.
Checkbox.
Color-well control.
Date input control.
Global date-and-time input control.
Local date-and-time input control.
E-mail address input control.
File upload control.
Hidden input control.
Image-coordinates input control.
Year-and-month input control.
Number input control.
Password-input field.
Radio button.
Imprecise number-input control.
Reset button.
Search field.
Submit button.
Telephone-number-input field.
Text-input field.
Time input control.
URL input control.
Year-and-week input control.
Inserted text.
Inserted text.
Pseudo-class: :invalid.
User input.
User input.
Key-pair generator/input control.
Key-pair generator/input control.
Creates a new KeyFrames element and runs given closure on it.
Caption for a form control.
Caption for a form control.
Pseudo-class: :lang.
Pseudo-class: :lang.
Pseudo-class: :last-child.
Pseudo-class: :last-of-type.
Title or explanatory caption.
Title or explanatory caption.
List item.
List item.
Inter-document relationship metadata.
Inter-document relationship metadata.
Pseudo-class: :link.
Returns the natural logarithm (base e) of a double value.
Returns the base 10 logarithm of a double value.
Main definition.
Main definition.
Image-map definition.
Image-map definition.
Marked (highlighted) text.
Marked (highlighted) text.
Math element.
Math element.
List of commands.
List of commands.
Scalar gauge.
Scalar gauge.
Group of navigational links.
Group of navigational links.
Fallback content for script.
Fallback content for script.
Pseudo-class: :not( @DelegatesTo(value = StyleGroup, strategy = Closure.DELEGATE_FIRST) Closure closure).
Pseudo-class: :not().
Pseudo-class: :nth-child.
Pseudo-class: :nth-child.
Pseudo-class: :nth-last-child.
Pseudo-class: :nth-last-child.
Pseudo-class: :nth-last-of-type.
Pseudo-class: :nth-last-of-type.
Pseudo-class: :nth-of-type.
Pseudo-class: :nth-of-type.
Generic external content.
Generic external content.
Pseudo-class: "nth-child(odd)".
Ordered list.
Ordered list.
Pseudo-class: :only-child.
Pseudo-class: :only-of-type.
Group of options.
Group of options.
Option.
Option.
Pseudo-class: :optional.
Pseudo-class: :out-of-range.
Result of a calculation in a form.
Result of a calculation in a form.
Paragraph.
Paragraph.
Initialization parameters for plugins.
Initialization parameters for plugins.
Returns the value of the first argument raised to the power of the second argument.
Preformatted text.
Preformatted text.
Processes a given InputStream and outputs to given OutputStream.
Processes a given Reader and outputs to given PrintWriter.
Processes a given groocss string and outputs as CSS string.
conf
- Optional Config object for configuration.groocss
- Input String with GrooCSS code.charset1
- Charset of file to read (UTF-8 by default).addMeta
- Tells GrooCSS to augment String and Integer classes using metaClass (true by default).Processes the given closure with given optional config.
Progress indicator.
Progress indicator.
Quoted text.
Quoted text.
Pseudo-class: :read-only.
Pseudo-class: :read-write.
Pseudo-class: :required.
Pseudo-class: :root.
Ruby parenthesis.
Ruby parenthesis.
Ruby text.
Ruby text.
Ruby annotation.
Ruby annotation.
Processes the given closure with given optional config.
Struck text.
Struck text.
(sample) output.
(sample) output.
Section.
Section.
Creates a new StyleGroup element and runs given closure on it.
Creates a new StyleGroup element and runs given closure on it.
Option-selection form control.
Option-selection form control.
Makes sure that config passes through to root css.
Creates a new StyleGroup element and runs given closure on it.
Creates a new StyleGroup element and runs given closure on it.
Creates a new StyleGroup element, with all selectors in the given list joined with commas. If given list is empty, this method has the same behaviour as styles(closure).
Returns the trigonometric sine of an angle (in radians).
Small print.
Small print.
Media source.
Media source.
Generic span.
Generic span.
Returns the correctly rounded positive square root of a double value.
Strong importance.
Strong importance.
Creates an unattached StyleGroup object, useful for adding Styles to a StyleGroup conditionally or for reusing a group of styles several times.
Subscript.
Subscript.
Summary, caption, or legend for a details control.
Summary, caption, or legend for a details control.
Superscript.
Superscript.
Scalable vector graphics.
Scalable vector graphics.
Table.
Table.
Returns the trigonometric tangent of an angle (in radians).
Pseudo-class: :target.
Table row group.
Table row group.
Table cell.
Table cell.
Text input area.
Text input area.
Table footer row group.
Table footer row group.
Table header cell.
Table header cell.
Table heading group.
Table heading group.
Date and/or time.
Date and/or time.
Document title.
Document title.
Converts an angle measured in radians to an approximately equivalent angle measured in degrees.
Converts an angle measured in degrees to an approximately equivalent angle measured in radians.
Table row.
Table row.
Supplementary media track.
Supplementary media track.
Offset text conventionally styled with an underline.
Offset text conventionally styled with an underline.
Unordered list.
Unordered list.
Pseudo-class: :valid.
Variable or placeholder text.
Variable or placeholder text.
Video.
Video.
Pseudo-class: :visited.
Line-break opportunity.
Line-break opportunity.
Writes the CSS to the given file.
Writes the CSS to the given file.
Groovy Documentation