Skip to main content

Module css

Module css 

Source

Structs§

CssRule
Selector
A full selector: chain of segments (ancestor > … > target) + optional :hover e.g. “.card h1:hover” = segments=[Segment([Class(“card”)]), Segment([Tag(“h1”)])], hover=true
SelectorSegment
A segment is one space-separated part of a selector. e.g., “div.btn.active” is ONE segment with parts [Tag(“div”), Class(“btn”), Class(“active”)] All parts in a segment must match the SAME element.

Enums§

SelectorPart
A single selector atom (e.g., “div”, “.card”, “#main”)

Functions§

apply_property
apply_styles
parse_color
parse_inline_style
parse_length
parse_stylesheet
parse_stylesheet_with_keyframes