Flex Grid

Summary

A flexbox grid system which makes it possible to create responsive pages.

Order of classes

In order to make your application response you must define all four category of classes (xs, sm, md, lg). You have to make this explicit so that you have to think about how your application looks like on smaller devices.

There are no attributes defined for this pattern.

Example

Markup

<div class="zui-docs-flexgrid">
    <div class="zui-grid-container">
        <div class="zui-grid-row">
            <div class="zui-grid-xs-column-12 zui-grid-md-column-4 zui-grid-lg-column-6">
                <div class="zui-docs-flexgrid-column"></div>
            </div>
            <div class="zui-grid-xs-column-12 zui-grid-md-column-4 zui-grid-lg-column-6">
                <div class="zui-docs-flexgrid-column"></div>
            </div>
            <div class="zui-grid-xs-column-12 zui-grid-md-column-4 zui-grid-lg-column-12">
                <div class="zui-docs-flexgrid-column"></div>
            </div>
        </div>

        <div class="zui-grid-row-reverse">
            <div class="zui-grid-lg-column-3 zui-grid-lg-push-3">
                <div class="zui-docs-flexgrid-column"></div>
            </div>
            <div class="zui-grid-lg-column-3">
                <div class="zui-docs-flexgrid-column"></div>
            </div>
            <div class="zui-grid-lg-column-3">
                <div class="zui-docs-flexgrid-column"></div>
            </div>
        </div>

        <div class="zui-grid-row">
            <div class="zui-grid-lg-column-4">
                <div class="zui-docs-flexgrid-column"></div>
            </div>
            <div class="zui-grid-lg-column-4">
                <div class="zui-docs-flexgrid-column"></div>
            </div>
            <div class="zui-grid-lg-column-4">
                <div class="zui-docs-flexgrid-column"></div>
            </div>
        </div>
    </div>
</div>
Fork me on GitHub