package toffee
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9
doc/toffee.style/Style/Flex_direction/index.html
Module Style.Flex_directionSource
CSS flex-direction property for flexbox layout.
The flex-direction property establishes the main axis of a flex container, determining the direction in which flex items are laid out. The main axis defines the primary direction of item flow, while the cross axis runs perpendicular to it.
Items are justified along the main axis and aligned along the cross axis.
Reference: CSS Flexbox Level 1
type t = | Row(*Main axis is horizontal, left to right. Defines +x as the main axis.
*)| Column(*Main axis is vertical, top to bottom. Defines +y as the main axis.
*)| Row_reverse(*Main axis is horizontal, right to left. Defines -x as the main axis.
*)| Column_reverse(*Main axis is vertical, bottom to top. Defines -y as the main axis.
*)
main_axis t returns the absolute axis corresponding to the main axis.
RowandRow_reversereturnHorizontalColumnandColumn_reversereturnVertical
cross_axis t returns the absolute axis corresponding to the cross axis.
The cross axis is always perpendicular to the main axis.
RowandRow_reversereturnVerticalColumnandColumn_reversereturnHorizontal
to_string t returns the CSS string representation of t.
Rowreturns"row"Columnreturns"column"Row_reversereturns"row-reverse"Column_reversereturns"column-reverse"
pp fmt t pretty-prints t to fmt using its CSS string representation.