Directives¶
A directive is a CSS top level declaration that allows control of some aspects of the stylesheet application or translation to SLD. All directives are declared at the beginning of the CSS sheet and follow the same syntax:
@name value;
For example:
@mode 'Flat';
@styleTitle 'The title;
@styleAbstract 'This is a longer description'
* {
stroke: black
}
[cat = 10] {
stroke: yellow; stroke-width: 10
}
Supported directives¶
Directive |
Type |
Meaning |
Accepts Expression? |
---|---|---|---|
|
String, |
Controls how the CSS is translated to SLD. |
false |
|
String |
The generated SLD style title |
No |
|
String |
The generated SLD style abstract/description |
No |
Previous: CSS value types