Flexbox
§ Flex containers
.flex-row
and .flex-column
will create non-wrapping Flexbox containers, with flex-direction
set to row
and column
respectively.
.flex-switch
will create a Flexbox container that will switch from row to column when the width of an individual descendant exceeds the --flex-switch-threshold
variable (default 15ch
).
All of .flex-row
, .flex-column
and .flex-switch
will remove margins from their children, and have a gap set to --gap
.
Deprecated: The original names for these classes, .f-row
, .f-col
, and .f-switch
(as well as --f-switch-threshold
), have been deprecated in favor of the more intuitive names given above. The original names will be removed in version 2.0.
The following utility classes are meant to be applied to flex containers:
§ justify-content
§ align-items
§ flex-wrap
§ Flex children
The following utility classes can be used on flex children: