Blankslates are for when there is a lack of content within a page or section. Use them as placeholders to tell users why something isn’t there. Be sure to provide an action to add content as well.
Wrap some content in the outer .blankslate
wrapper to give it the blankslate appearance.
Use it to provide information when no dynamic content exists.
<div class="blankslate">
<h3>This is a blank slate</h3>
<p>Use it to provide information when no dynamic content exists.</p>
</div>
When it helps the message, include (relevant) icons in your blank slate. Add .blankslate-icon
to any .mega-octicon
s as the first elements in the blankslate, like so.
Use it to provide information when no dynamic content exists.
<div class="blankslate">
<span class="mega-octicon octicon-git-commit blankslate-icon"></span>
<span class="mega-octicon octicon-tag blankslate-icon"></span>
<span class="mega-octicon octicon-git-branch blankslate-icon"></span>
<h3>This is a blank slate</h3>
<p>Use it to provide information when no dynamic content exists.</p>
</div>
Add an additional optional class to the .blankslate
to change its appearance.
Narrows the blankslate container to not occupy the entire available width.
Use it to provide information when no dynamic content exists.
<div class="blankslate blankslate-narrow">
<h3>This is a blank slate</h3>
<p>Use it to provide information when no dynamic content exists.</p>
</div>
Removes the border-radius
on the top corners.
Use it to provide information when no dynamic content exists.
<div class="blankslate blankslate-capped">
<h3>This is a blank slate</h3>
<p>Use it to provide information when no dynamic content exists.</p>
</div>
Significantly increases the vertical padding.
Use it to provide information when no dynamic content exists.
<div class="blankslate blankslate-spacious">
<h3>This is a blank slate</h3>
<p>Use it to provide information when no dynamic content exists.</p>
</div>
Increases the size of the text in the blankslate
Use it to provide information when no dynamic content exists.
<div class="blankslate blankslate-large">
<h3>This is a blank slate</h3>
<p>Use it to provide information when no dynamic content exists.</p>
</div>
Removes the background-color
and border
.
Use it to provide information when no dynamic content exists.
<div class="blankslate blankslate-clean-background">
<h3>This is a blank slate</h3>
<p>Use it to provide information when no dynamic content exists.</p>
</div>