⚠️ This is a creation playground. Still in building process.
Want to know more about grid layout? Here a complete guide
.container element.
<div class="container grid-2">
<div>...</div>
<div>...</div>
</div>
Ordering is applied to the child item.
This is the same container we use currently in Neptune.
<div class="container"> ... </div>
This gets the same result as tipical .col-md-10 .col-md-offset-1 from Bootstrap
Need a semantic name for this?
<div class="container-10"> ... </div>
If you need this layout only for desktop. Use this case.
The boostrap system has a horizontal margin: -12px in the row, that's why it is a bit wider.
Basic simple system
IE11 friendly
<div class="grid-2">
<div>...</div>
<div>...</div>
</div>
It's totally fine to nest grids
<div class="grid-2 gap">
<div>...
<div class="grid-2">
<div>...</div>
<div>...</div>
</div>
</div>
<div>...</div>
</div>
<div class="container-8 grid-2">
<div>...
<div class="grid-2--md gap">
<div>...</div>
<div>...</div>
</div>
</div>
<div>...</div>
</div>
The rows are autoplaced. You don´t have to do anything.
<div class="grid-3">
<div>...</div>
<div>...</div>
<div>...</div>
<div>...</div>
</div>
<div class="grid-2 gap">
<div>...</div>
<div>...</div>
</div>
The default gap is for both columns and rows.
Gap only for columns. The space is 1/12
:root {
--gap: calc(100% / 12);
}
The reverse mode is only horizontal (by now).
<div class="grid-n reverse">
<div>...</div>
<div>...</div>
</div>
The class must be added to the child item
<div class="grid-4--md">
<div>...</div>
<div>...</div>
<div class="order-1--mobile">...</div>
<div>...</div>
</div>
Do we have common layout patterns?
<div class="grid-sidebar">
<div>...</div>
<div>...</div>
</div>
Need to review. Select the useful combinations