Skip to main content

Module stylesheet

Module stylesheet 

Source
Expand description

CSS-like model/provider stylesheet parser and applicator.

Selectors:

  • * (specificity 0) — matches all nodes
  • .class (specificity 1) — matches nodes with that class
  • #node_id (specificity 2) — matches a specific node

Later rules of equal specificity win. Explicit node attributes always override stylesheet values.

Structs§

StyleRule
A single stylesheet rule.

Enums§

Selector
A CSS-like selector.

Functions§

apply_stylesheet
Apply stylesheet rules to a pipeline graph.
parse_stylesheet
Parse a stylesheet string into rules.