Container
Containers | .container |
<div class="container"> | |
... | |
</div> |
Content containers can be used to align components to the grid, or display components in a particular layout. These containers can be seen in use within the page examples section in Style Guide.
Containers | .container |
<div class="container"> | |
... | |
</div> |
Containers | .col-12 .content-header |
<header class="col-12 content-header"> | |
<h1>Campaigns</h1> | |
<div class="btn-list"> | |
<button class="btn btn-primary">Create Campaign</button> | |
</div> | |
</header> |
Content blocks add 30px of bottom margin to help space components (accordions, cards, tables, etc). The margin is removed on the last content block within a parent (last-child).
Containers | .content-block |
<div class="content-block"> | |
... | |
</div> |
Flexible Header can be used in various places through the product, including page headers and full screen modals.
Positioning is not included with the component. Position style should be done on a use-case basis.
Container | .flex-header |
Required Elements | .flex-header-action |
Optional Elements | .flex-header-title .flex-header-tabs .flex-header-tab .flex-header-right .counter .btn-list .btn |
<header class="flex-header"> | |
<div> | |
<a class="flex-header-action"> | |
<i class="sg-icon sg-icon-x"></i> | |
</a> | |
<div class="flex-header-title"> | |
<h3> | |
Header Including Everything | |
<i class="sg-icon sg-icon-info-circle"></i> | |
</h3> | |
</div> | |
<div class="flex-header-tabs"> | |
<a class="flex-header-tab is-active"> | |
<i class="sg-icon sg-icon-mail"></i> | |
Run New Test | |
</a> | |
<a class="flex-header-tab"> | |
<i class="sg-icon sg-icon-mc-preview"></i> | |
View Test Results | |
</a> | |
</div> | |
<button class="btn btn-on-dark btn-secondary has-icon"> | |
<i class="sg-icon sg-icon-save-draft"></i> | |
Save | |
</button> | |
</div> | |
<div class="flex-header-right"> | |
<div class="counter"> | |
Credits | |
<span class="counter-bubble"> | |
26 | |
</span> | |
</div> | |
<div class="btn-list"> | |
<button class="btn btn-tertiary"> | |
Cancel | |
</button> | |
<button class="btn btn-primary"> | |
Update | |
</button> | |
</div> | |
</div> | |
</header> |
Modal Header is a variant of the Flexible Header, that provides the same structure but in a light theme. It is the preferred header for fullscreen modals.
Positioning is not included with the component. Position style should be done on a use-case basis.
Container | .flex-header |
Required | .flex-header.is-light |
Required Elements | .flex-header-action |
Optional Elements | .flex-header-title .flex-header-tabs .flex-header-tab .flex-header-right .counter .btn-list .btn |
<header class="flex-header is-light"> | |
<!-- same children as flexible header --> | |
</header> |