11 KiB
Executable File
layout | title |
---|---|
page | Boxes Components |
There are two types of boxes, info boxes & small boxes. Both boxes are used to display statistical snippets.
Info Box
{: .text-bold .text-dark .mt-4}
Note!
To wrap the text in to a new line add to the info-box-text the class text-wrap. To truncate the text with ... add to the info-box-content the class text-truncate. (Here you should add a tooltip to display the whole pharse) {: .quote-danger}
Info Box with Progress Bar
{: .text-bold .text-dark .mt-4}
Small Box
{: .text-bold .text-dark .mt-4}
Loading Style
{: .text-bold .text-dark .mt-5}
To simulate a loading state, simply place this code before the .info-box
/ .small-box
closing tag.
Tip!
We recommend
.fa-2x
for Info Boxes and.fa-3x
for Small Boxes to get a nicely sized loading icon,
like in this documentation. {: .quote-info}
<div class="overlay">
<i class="fas fa-2x fa-sync-alt fa-spin"></i>
</div>
You can also use a dark loading style with adding .dark
to .overlay
like this code.
<div class="overlay dark">
<i class="fas fa-2x fa-sync-alt fa-spin"></i>
</div>