Skip to main content

Module css

Module css 

Source
Expand description

Types and methods used to describe the style of an application

Structs§

Css
Css stylesheet - contains a parsed CSS stylesheet in “rule blocks”, i.e. blocks of key-value pairs associated with a selector path.
CssDeclarationVec
CssNthChildPattern
CssPath
Represents a full CSS path (i.e. the “div#id.class” selector belonging to a CSS “content group” (the following key-value block)).
CssPathSelectorVec
CssRuleBlock
One block of rules that applies a bunch of rules to a “path” in the style, i.e. div#myid.myclass -> { ("justify-content", "center") }
CssRuleBlockVec
DynamicCssProperty
A DynamicCssProperty is a type of css property that can be changed on possibly every frame by the Rust code - for example to implement an On::Hover behaviour.
RuleIterator
Stylesheet
StylesheetVec

Enums§

CssDeclaration
Contains one parsed key: value pair, static or dynamic
CssDeclarationVecDestructor
CssNthChildSelector
CssPathPseudoSelector
CssPathSelector
CssPathSelectorVecDestructor
CssPropertyValue
CssRuleBlockVecDestructor
NodeTypeTag
Signifies the type of a DOM node without carrying any associated data
NodeTypeTagParseError
NodeTypeTagParseErrorOwned
StylesheetVecDestructor

Traits§

PrintAsCssValue

Functions§

css_to_rust_code
format_dynamic_css_prop
format_node_type
format_nth_child_selector
format_pseudo_selector_type
format_selectors
format_single_selector
get_specificity
Returns specificity of the given css path. Further information can be found on the w3 website.
print_block_path
print_declaration

Type Aliases§

CssContentGroup
CssDeclarationVecDestructorType
CssPathSelectorVecDestructorType
CssRuleBlockVecDestructorType
StylesheetVecDestructorType