CSS Styles
Each tool can be styled using SVG attributes and in most cases CSS attribute styles.
These styles are defined in the styles section.
Within that styles section, the tool or toolpart must be selected. For single part tools, the selector is the same as the type of the tool. For multi-part tools, each part has its own styling sub-section.
Basic usage¶
Single part tool, a Circle:
1 2 3 4 5 6 7 8 9 |
|
Multi-part tool, an Entity State composed of a 'value' and 'uom':
1 2 3 4 5 6 7 8 9 |
|
Overriding CSS Class styles¶
The following configuration results in a circle with a red stroke and blue fill. The stroke comes from the Class definition. The fill from the class definition is overridden by the style configuration.
1 2 3 4 5 6 7 8 9 10 11 |
|