Skip to content
astrostyle v0.6.2

Layouts

Objects arrange things and never decorate them. Tune them with their custom properties (--ap-stack-gap, --ap-grid-min…) or with the generated modifiers. Leave the layer out with $emit-objects: false. Drag the corner of the dashed boxes to see them adapt.

Stack 01

ap-o-stack, gap modifiers --gap-xxs to --gap-xxl.

One
Two
Three

Cluster 02

ap-o-cluster, plus --start, --center, --end, --between.

WeaponsCybertechHacksDronesEquipment

Grid 03

ap-o-grid: as many columns as fit, each at least --ap-grid-min wide.

Alpha
Beta
Gamma
Delta
Epsilon
Zeta

ap-o-sidebar: the first child keeps its width, the content takes the rest; they stack when the content would drop below half. --end puts the side on the right.

Side
Content takes all the remaining room and wraps under the side when the space runs out.

Switcher 05

ap-o-switcher: a row that becomes a column all at once below --ap-switcher-threshold.

Scan
Jump
Dock

Frame 06

ap-o-frame with --square, --4-3, --3-2, --16-9.

square
4-3
3-2
16-9

Container 07

ap-o-container centers this whole page with side gutters; --sm, --md, --lg (default) and --xl set its maximum width.