Expand description
A typed representation of CSS style properties in Rust. Used as input to layout computation.
Modules§
- Style types for controlling alignment
- Style types for representing lengths / sizes
- grid 🔒Style types for CSS Grid layout
Structs§
- A typed representation of the CSS style information for a single node.
Enums§
- Sets the distribution of space between and around content items For Flexbox it controls alignment in the cross axis For Grid it controls alignment in the block axis
- Used to control how child nodes are aligned. For Flexbox it controls alignment in the cross axis For Grid it controls alignment in the block axis
- The amount of space available to a node in a given axis https://www.w3.org/TR/css-sizing-3/#available
- An abstracted version of the CSS
display
property where any value other than “none” is represented by “normal” See: https://www.w3.org/TR/css-display-3/#box-generation - Specifies whether size styles for this node are assigned to the node’s “content box” or “border box”
- A unit of linear measurement
- Sets the layout used for the children of this node
- Controls whether grid items are placed row-wise or column-wise. And whether the sparse or dense packing algorithm is used.
- The first argument to a repeated track definition. This type represents the type of automatic repetition to perform.
- A unit of linear measurement
- A unit of linear measurement
- Maximum track sizing function
- Minimum track sizing function
- How children overflowing their container should affect layout
- The positioning strategy for this item.
- The sizing function for a grid track (row/column) See https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns
Traits§
- The core set of styles that are shared between all CSS layout nodes
- The set of styles required for a CSS Grid container
- The set of styles required for a CSS Grid item (child of a CSS Grid container)
Type Aliases§
- Controls alignment of an individual node
- A grid line placement specification. Used for grid-[row/column]-[start/end]. Named tracks are not implemented.
- Sets the distribution of space between and around content items For Flexbox it controls alignment in the main axis For Grid it controls alignment in the inline axis
- Used to control how child nodes are aligned. Does not apply to Flexbox, and will be ignored if specified on a flex container For Grid it controls alignment in the inline axis
- Controls alignment of an individual node
- The sizing function for a grid track (row/column)