Expand description
A typed representation of CSS style properties in Rust. Used as input to layout computation.
Structs§
- Style
- A typed representation of the CSS style information for a single node.
Enums§
- Align
Content - 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
- Align
Items - 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
- Available
Space - The amount of space available to a node in a given axis https://www.w3.org/TR/css-sizing-3/#available
- BoxGeneration
Mode - 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 - BoxSizing
- Specifies whether size styles for this node are assigned to the node’s “content box” or “border box”
- Dimension
- A unit of linear measurement
- Display
- Sets the layout used for the children of this node
- Flex
Direction - The direction of the flexbox layout main axis.
- Flex
Wrap - Controls whether flex items are forced onto one line or can wrap onto multiple lines.
- Grid
Auto Flow - Controls whether grid items are placed row-wise or column-wise. And whether the sparse or dense packing algorithm is used.
- Grid
Track Repetition - The first argument to a repeated track definition. This type represents the type of automatic repetition to perform.
- Length
Percentage - A unit of linear measurement
- Length
Percentage Auto - A unit of linear measurement
- MaxTrack
Sizing Function - Maximum track sizing function
- MinTrack
Sizing Function - Minimum track sizing function
- Overflow
- How children overflowing their container should affect layout
- Position
- The positioning strategy for this item.
- Text
Align - Used by block layout to implement the legacy behaviour of
<center>
and<div align="left | right | center">
- Track
Sizing Function - The sizing function for a grid track (row/column) See https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns
Traits§
- Block
Container Style - The set of styles required for a Block layout container
- Block
Item Style - The set of styles required for a Block layout item (child of a Block container)
- Core
Style - The core set of styles that are shared between all CSS layout nodes
- Flexbox
Container Style - The set of styles required for a Flexbox container
- Flexbox
Item Style - The set of styles required for a Flexbox item (child of a Flexbox container)
- Grid
Container Style - The set of styles required for a CSS Grid container
- Grid
Item Style - The set of styles required for a CSS Grid item (child of a CSS Grid container)
Type Aliases§
- Align
Self - Controls alignment of an individual node
- Grid
Placement - A grid line placement specification. Used for grid-[row/column]-[start/end]. Named tracks are not implemented.
- Justify
Content - 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
- Justify
Items - 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
- Justify
Self - Controls alignment of an individual node
- NonRepeated
Track Sizing Function - The sizing function for a grid track (row/column)