package toffee
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9
doc/toffee.style/Style/Grid_auto_flow/index.html
Module Style.Grid_auto_flowSource
CSS grid-auto-flow property.
Controls whether grid items are placed row-wise or column-wise, and whether the sparse or dense packing algorithm is used.
The dense packing algorithm attempts to fill in holes earlier in the grid if smaller items come up later. This may cause items to appear out-of-order when doing so would fill in holes left by larger items.
See MDN: grid-auto-flow.
type t = | Row(*Items are placed by filling each row in turn, adding new rows as necessary.
*)| Column(*Items are placed by filling each column in turn, adding new columns as necessary.
*)| Row_dense(*Items are placed by filling rows first, using the dense packing algorithm.
*)| Column_dense(*Items are placed by filling columns first, using the dense packing algorithm.
*)
to_string flow converts flow to its CSS string representation.
Returns "row", "column", "row dense", or "column dense".
compare a b provides total ordering of grid auto flow values.
The ordering is Row < Column < Row_dense < Column_dense.
pp fmt flow prints flow to fmt using its CSS string representation.
is_dense flow returns true if flow uses the dense packing algorithm.
Returns true for Row_dense and Column_dense, false otherwise.
primary_axis flow returns the axis along which items are placed first.
Returns Inline for row-based flows (Row and Row_dense), and Block for column-based flows (Column and Column_dense).