Expand description
Style types for CSS Grid layout
Structs§
- Grid
Template Area - Defines a grid area
- Grid
Template Repetition - A typed representation of a
repeat(..)
ingrid-template-*
value - Invalid
String Repetition Value - Error returned when trying to convert a string to a GridTrackRepetition and that string is not either “auto-fit” or “auto-fill”
- MaxTrack
Sizing Function - Maximum track sizing function
- MinTrack
Sizing Function - Minimum track sizing function
- Named
Grid Line - Defines a named grid line
Enums§
- Generic
Grid Placement - A grid line placement specification which is generic over the coordinate system that it uses to define grid line positions.
- Generic
Grid Template Component - A type representing a component in a
grid-template-*
defintion where the type representingrepeat()
s is generic - Grid
Area 🔒Axis - Axis as
Row
orColumn
- Grid
Area 🔒End - Logical end (
Start
orEnd
) - 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
Placement - A grid line placement specification. Used for grid-[row/column]-[start/end]. Named tracks are not implemented.
- Grid
Template Component - An element in a
grid-template-columns
orgrid-template-rows
definition. Either a track sizing function or a repeat(). - Repetition
Count - The first argument to a repeated track definition. This type represents the type of automatic repetition to perform.
Traits§
- Generic
Repetition - A trait to represent a
repeat()
clause in agrid-template-*
definition - 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)
- Template
Line Names - A nested list of line names. This is effectively a generic representation of
Vec<Vec<String>>
that allows both the collection and string type to be customised.
Type Aliases§
- NonNamed
Grid 🔒Placement - A grid line placement using CSS grid line coordinates to specify line positions. This uses the same coordinate
system as the public
GridPlacement
type but doesn’t support named lines (these are expected to have already been resolved by the time values of this type are constructed). - Origin
Zero 🔒Grid Placement - A grid line placement using the normalized OriginZero coordinates to specify line positions.
- Track
Sizing Function - The sizing function for a grid track (row/column)