Skip to content

Cluster

Overview

Arrange items horizontally with consistent spacing.

html
<div class="o-cluster">
    <div></div>
    <div></div>
</div>

Demo on CodePen

Modifiers

Responsive

Changes to vertical orientation on small screens.

NameDescription
o-cluster--responsiveChanges to vertical orientation on small screens.
html
<div class="o-cluster o-cluster--responsive">
    <div></div>
    <div></div>
</div>

Gap

Sets the gap between items.

NameDescription
o-cluster--gap-smSmall.
o-cluster--gap-mdMedium.
o-cluster--gap-lgLarge.
html
<div class="o-cluster o-cluster--gap-sm">
    <div></div>
    <div></div>
</div>

Demo on CodePen

Align

Sets the cross-axis alignment of items.

NameDescription
o-cluster--align-startStart.
o-cluster--align-centerCenter.
o-cluster--align-endEnd.
html
<div class="o-cluster o-cluster--align-center">
    <div></div>
    <div></div>
</div>

Demo on CodePen

Justify

Sets the main-axis alignment of items.

NameDescription
o-cluster--justify-startStart.
o-cluster--justify-centerCenter.
o-cluster--justify-endEnd.
html
<div class="o-cluster o-cluster--align-center">
    <div></div>
    <div></div>
</div>

Demo on CodePen