Container with columns function. You can make any container a column container just by adding class zust-column
.
<div class="zust-container zust-column">
<div class="zust-column zust-bg-red">1</div>
<div class="zust-column zust-bg-pink">2</div>
<div class="zust-column zust-bg-yellow">3</div>
<div class="zust-column zust-bg-green">4</div>
<div class="zust-column zust-bg-light-green">5</div>
<div class="zust-column zust-bg-light-blue">6</div>
<div class="zust-column zust-bg-blue">7</div>
</div>
Columns are activated from medium breakpoint to next. In small breakpoint it will be row. All are of same size.
You can activate column for all breakpoints by adding class zust-active@all
.
<div class="zust-container zust-column zust-active@all">
<div class="zust-column zust-bg-red">1</div>
<div class="zust-column zust-bg-pink">2</div>
<div class="zust-column zust-bg-yellow">3</div>
<div class="zust-column zust-bg-green">4</div>
<div class="zust-column zust-bg-light-green">5</div>
<div class="zust-column zust-bg-light-blue">6</div>
<div class="zust-column zust-bg-blue">7</div>
</div>
You can size column by any of these classes:
zust-size-1-2
: Same as halfzust-full
: Column will take the full space of it's container.3 Parts
zust-size-1-3
: Same as one thirdzust-size-2-3
: Same as two third4 Parts
zust-size-1-4
: Same as one fourthzust-size-3-4
: Same as three fourth5 Parts
zust-size-1-5
: Same as one fifthzust-size-2-5
: Same as two fifthzust-size-3-5
: Same as three fifthzust-size-4-5
: Same as four fifth12 Parts
zust-size-1-12
: Same as one twelfthzust-size-2-12
: Same as two twelfthzust-size-3-12
: Same as three twelfthzust-size-4-12
: Same as four twelfthzust-size-5-12
: Same as five twelfthzust-size-7-12
: Same as seven twelfthzust-size-8-12
: Same as eight twelfthzust-size-9-12
: Same as nine twelfthzust-size-10-12
: Same as ten twelfthzust-size-11-12
: Same as eleven twelfth<div class="zust-container zust-column">
<div class="zust-column zust-bg-blue zust-size-4-5">4-5 </div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-blue zust-size-3-4">3-4 </div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-blue zust-size-2-3">2-3</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-blue zust-size-3-5">3-5</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-blue zust-size-1-2">1-2</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-blue zust-size-2-5">2-5</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-blue zust-size-1-3">1-3</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-blue zust-size-1-4">1-4</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-blue zust-size-1-5">1-5</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
12 Parts
<div class="zust-container zust-column">
<div class="zust-column zust-bg-pink zust-size-11-12">11-12</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-pink zust-size-10-12">10-12</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-pink zust-size-9-12">9-12</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-pink zust-size-8-12">8-12</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-pink zust-size-7-12">7-12</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-pink zust-size-1-2">1-2</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-pink zust-size-5-12">5-12</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-pink zust-size-4-12">4-12</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-pink zust-size-3-12">3-12</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-pink zust-size-2-12">2-12</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
<div class="zust-container zust-column">
<div class="zust-column zust-bg-pink zust-size-1-12">1-12</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
By default column container only get activated from medium breakpoint to next. You can only activate the column container in specific breakpoint if you want to, because it has support for Breakpoints. The base class name structure is zust-active@breakpoint-name
.
Looks like you're on desktop. try resizing your browser's window. :D
Small breakpoint
<div class="zust-container zust-column zust-active@small">
<div class="zust-column zust-bg-red">1</div>
<div class="zust-column zust-bg-pink">2</div>
<div class="zust-column zust-bg-yellow">3</div>
<div class="zust-column zust-bg-green">4</div>
<div class="zust-column zust-bg-light-green">5</div>
<div class="zust-column zust-bg-light-blue">6</div>
<div class="zust-column zust-bg-blue">7</div>
</div>
Medium breakpoint
<div class="zust-container zust-column zust-active@medium">
<div class="zust-column zust-bg-red">1</div>
<div class="zust-column zust-bg-pink">2</div>
<div class="zust-column zust-bg-yellow">3</div>
<div class="zust-column zust-bg-green">4</div>
<div class="zust-column zust-bg-light-green">5</div>
<div class="zust-column zust-bg-light-blue">6</div>
<div class="zust-column zust-bg-blue">7</div>
</div>
Until large breakpoint
<div class="zust-container zust-column zust-active@until-large">
<div class="zust-column zust-bg-red">1</div>
<div class="zust-column zust-bg-pink">2</div>
<div class="zust-column zust-bg-yellow">3</div>
<div class="zust-column zust-bg-green">4</div>
<div class="zust-column zust-bg-light-green">5</div>
<div class="zust-column zust-bg-light-blue">6</div>
<div class="zust-column zust-bg-blue">7</div>
</div>
Large breakpoint
<div class="zust-container zust-column zust-active@large">
<div class="zust-column zust-bg-red">1</div>
<div class="zust-column zust-bg-pink">2</div>
<div class="zust-column zust-bg-yellow">3</div>
<div class="zust-column zust-bg-green">4</div>
<div class="zust-column zust-bg-light-green">5</div>
<div class="zust-column zust-bg-light-blue">6</div>
<div class="zust-column zust-bg-blue">7</div>
</div>
You can set different column size for different breakpoint as well. Just use any of Breakpoints. The main structure will be like this zust-column-size@breakpoint-name
.
<div class="zust-container zust-column zust-active@all">
<div class="zust-column zust-bg-teal zust-size-3-4@small zust-size-1-3@medium zust-size-4-12@large">
<span>3-4 Small</span><br>
<span>1-3 Medium</span><br>
<span>4-12 Large</span>
</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
Want a gap inside of your columns? Simply add a column and just don't add color to it.
<div class="zust-container zust-column zust-active@all">
<div class="zust-column zust-bg-primary">Column</div>
<div class="zust-column"></div>
<div class="zust-column zust-bg-light-green">Column</div>
<div class="zust-column zust-bg-light-blue">Column</div>
</div>
You can make any column take it's default space by adding class zust-default
.
<div class="zust-container zust-column zust-active@all">
<div class="zust-column zust-bg-blue zust-default">Hola, How are you doing?</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
You can set default column sizing for specific breakpoint. Use any of Breakpoints. Base class name structure will be like zust-default@breakpoint-name
.
<div class="zust-container zust-column zust-active@all">
<div class="zust-column zust-bg-primary zust-default@medium">This column will be default only at medium breakpoint</div>
<div class="zust-column zust-bg-light">Auto</div>
</div>
You can nest a column inside of another column. You have to just add zust-container
class to a column element.
Resize for Fun!
<div class="zust-container zust-column zust-active@all">
<div class="zust-column zust-container zust-active@small">
<div class="zust-column zust-bg-red">Col-1-Child-1</div>
<div class="zust-column zust-bg-primary">Col-1-Child-2</div>
</div>
<div class="zust-column zust-container zust-active@medium">
<div class="zust-column zust-bg-teal">Col-2-Child-1</div>
<div class="zust-column zust-bg-pink">Col-2-Child-2</div>
</div>
<div class="zust-column zust-container zust-active@large">
<div class="zust-column zust-bg-amber">Col-3-Child-1</div>
<div class="zust-column zust-bg-light-green">Col-3-Child-2</div>
</div>
</div>
You can also activate an column whenever you want. Add class zust-custom
, it will reset column's activation breakpoint and whenever you want to activate it, just add class zust-active
.
<div class="zust-container zust-column zust-custom">
<div class="zust-column zust-bg-red">1</div>
<div class="zust-column zust-bg-pink">2</div>
<div class="zust-column zust-bg-yellow">3</div>
<div class="zust-column zust-bg-green">4</div>
<div class="zust-column zust-bg-light-green">5</div>
<div class="zust-column zust-bg-light-blue">6</div>
<div class="zust-column zust-bg-blue">7</div>
</div>