Megacorp Documentation v2.0-beta

Alignment

Two options govern how a cell lays out its own content, and one governs the order the row draws its cells in.

:child-direction:

A cell stacks its content in a column unless it is told otherwise. Written as row, the content flows across instead:

Stacked

in a column.

Flowing

across a row.

:child-align:

Where the content sits along the cell's major axis — start, end, center, justify or spaced:

start

center

end

:reverse:

The row lays its cells out right to left. The cell written first is drawn last:

Written first

Written second

Written third

:class-container:, :class-row: and :class:

The three escape hatches, for a project whose own stylesheet needs a hook. This site defines nothing for them:

The classes land on the outer <div>, the row <div> and this cell's <div> respectively.

They are added to sphinx-design's own classes, never in place of them.