Flex
This is an attempt to create a "utility tag" to supplement our utility classes.
Standard
This is the default <ca-flex>
in action
It works with classes too.
Direction
Control the flex-direction
with the direction
attribute.
Reversals work too.
Wrap
Use the wrap
attributes to control wrapping.
Gaps
Use the gap
attribute to control the gap.
The gap-x
attribute limits the gap to columns.
The gap-y
attribute limits the gap to rows.
Align
Use the align-items
attribute to control the alignment.
align-content
works too.
Use the align
attribute on <ca-self>
to align a single item.
Justify
justify-content
controls justification.
Basis
Use the basis
attribute on <ca-self>
to control flex-basis
.
This remains limited in functionality. To do flex-basis well, we need some "standard block sizes" for content components.
Grow and shrink
Use grow
and shrink
attributes on <ca-self>
to control their
respective flex properties.
Some research would be helpful to understand which grow and shrink values are, well, valuable.