Expand description
Helper functions which it make it easier to create instances of types in the style
and geometry
modules.
Traits§
- Trait to create constant percent values from plain numbers
- Trait to create absolute length values from plain numbers
- Trait to create constant percent values from plain numbers
- Trait to abstract over auto values
- Trait to create
fit-content(…)
values from plain numbers - Trait to abstract over grid line values
- Trait to abstract over grid span values
- Trait to abstract over max_content values
- Trait to abstract over min_content values
- Trait to abstract over zero values
Functions§
- Returns the auto value for that type
- Returns a grid template containing
count
evenly sized tracks - Returns a value of the inferred type which represent a
fit-content(…)
value with the given argument. - Shorthand for minmax(0, Nfr). Probably what you want if you want exactly evenly sized tracks.
- Create a
Fraction
track sizing function (fr
in CSS) - Returns a value of the inferred type which represent an absolute length
- Specifies a grid line to place a grid item between in CSS Grid Line coordinates:
- Returns the auto value for that type
- Returns the auto value for that type
- Returns a MinMax with min value of min and max value of max
- Returns a value of the inferred type which represent a percentage
- Returns an auto-repeated track definition
- Returns a GridPlacement::Span
- Returns the zero value for that type