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.
When it helps the message, include (relevant) icons in your blank slate. Add
.blankslate-icon to any
.mega-octicons as the first elements in the blankslate, like so.
<div class="blankslate"> <%= octicon "git-commit", :height => 32, :class => "blankslate-icon" %> <%= octicon "tag", :height => 32, :class => "blankslate-icon" %> <%= octicon "git-branch", :height => 32, :class => "blankslate-icon" %> <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.
border-radius on the top corners.
Significantly increases the vertical padding.
Increases the size of the text in the blankslate