Skip to content
Signal

Utilities

Layout utilities

Flex and grid helpers.

Flex and grid helpers. Gaps come from the spacing utilities.

Example

ct-grid-3
ct-gap-8
cell

Classes

19 classes from platforms/web/utilities/layout.css.

ClassDeclarations
.ct-flexdisplay:flex
.ct-inline-flexdisplay:inline-flex
.ct-flex-coldisplay:flex;flex-direction:column
.ct-flex-wrapflex-wrap:wrap
.ct-items-startalign-items:flex-start
.ct-items-centeralign-items:center
.ct-items-endalign-items:flex-end
.ct-items-baselinealign-items:baseline
.ct-justify-startjustify-content:flex-start
.ct-justify-centerjustify-content:center
.ct-justify-endjustify-content:flex-end
.ct-justify-betweenjustify-content:space-between
.ct-growflex:1 1 0;min-width:0
.ct-shrink-0flex-shrink:0
.ct-griddisplay:grid
.ct-grid-2display:grid;grid-template-columns:repeat(2,minmax(0,1fr))
.ct-grid-3display:grid;grid-template-columns:repeat(3,minmax(0,1fr))
.ct-grid-autodisplay:grid;grid-template-columns:repeat(auto-fill,minmax(var(--grid-min,var(--size-arrival-panel-width)),1fr))
.ct-place-centerplace-items:center