New CSS Classes

Backgrounds

A number of background colors have been supplied. These can be added to any element as they just set the background color to the themes predefined colors.

Class Brand color
bg-primary brand-primary
bg-info brand-info
bg-warning brand-warning
bg-danger brand-danger
bg-success brand-success
bg-inverse brand-black
bg-purple brand-purple
bg-radiation brand-radiation

Badges

There are a few new badge classes. These work the same as standard classes and use the corresponding brand color for their background color.

  • badge-primary
  • badge-info
  • badge-success
  • badge-warning
  • badge-danger

Code

<span class="badge badge-primary">10</span>

Output

_images/badges.png

Buttons

This is meant to be an inverted button. It varies by theme, but will always match the default theme settings.

  • btn-inverse

Code

<button class="btn btn-inverse">Go Back</button>

Output

_images/buttons.png

Panels

We have worked to add quite a few useful additions to panels. These are all completely optional of course, but we feel they add a lot of functionality people would find useful.

Panel Alerts

Panel alerts are used when you need to alert the user to some details about what the panel contains. You could also use them to detail errors and messages from form submission if you chose as well.

Code

<div class="panel panel-default">
    <div class="panel-alert panel-alert-info">Info Alert</div>
</div>

Output

Class Image
panel-alert-info _images/panel-alert-info.png
panel-alert-warning _images/panel-alert-warning.png
panel-alert-danger _images/panel-alert-danger.png
panel-alert-success _images/panel-alert-success.png

Panel Buttons

Panel buttons are used to add quick and easy buttons to the panel heading. These come in all the common classes or a classless version.

You can have as many or as few as you want. Just keep adding them to suit your needs.

_images/panel-buttons-full.png

Code

<div class="panel panel-default">
    <div class="panel-heading">
        Panel Heading
        <div class="panel-btn primary">
            <a><i class="fa fa-plus"></i></a>
        </div>
    </div>
    <div class="panel-body">Panel Body</div>
</div>

Output

Class Image
primary _images/panel-button-primary.png
info _images/panel-button-info.png
warning _images/panel-button-warning.png
danger _images/panel-button-danger.png
success _images/panel-button-success.png
<none> _images/panel-button-none.png

Text

The only addition to text is the inclusion of text-primary as a class. This will set your text color to the brand-primary.

<p class="text-primary">Something</p>

Tables

The only addition to tables is the inclusion of a primary table row class to use your primary brand color.

<tr class="primary"><td>Something</td></tr>

Wells

Wells have been upgraded slightly to have a bit more styling. The inclusion of the well-title helps distinguish wells on a page.

Well Title

Code

<div class="well">
    <div class="well-title info">Well title</div>
    Default Well
</div>

Output

Class Image
<none> _images/well-title.png
info _images/well-title-info.png
success _images/well-title-success.png
warning _images/well-title-warning.png
danger _images/well-title-danger.png

Well Title Buttons

Well title buttons work like panel buttons. Unlike panel buttons, there can only be one at a time.

Code

<div class="well">
    <div class="well-title">
        <div class="well-btn well-btn-right"><i class="fa fa-plus"></i></div>
        Well title
    </div>
    Default Well
</div>

Output

Class Image
<none> _images/well-button.png
info _images/well-button-info.png
success _images/well-button-success.png
warning _images/well-button-warning.png
danger _images/well-button-danger.png