
Content boxes are used to better organize your content and provide a visual consistency to your app.
Below, you will find the basic structure needed to create a content box.
Change the content box title background ( .content-box-header ) by adding to it one of the color CSS helper classes listed below.
The core color helpers can be applied to all kind of elements from buttons to icons, headers, headings, etc. They do not change when you switch to a different theme from the same template.
These are the template default color schemes and are used site wide to consistently style common elements. For the primary color you must add .bg-primary and for the secondary color you must add .ui-state-default. Note that theme two styles change based on what color scheme you choose for your template.
.bg-primary class.
.bg-purple class.
.bg-yellow class.
.bg-blue class.
.bg-white class.
.bg-black class.
.bg-black class.
.bg-blue-alt class.
Use the example below to create a content box with a two-line header title.
.bg-default class.
You can add icons to the content box header titles using the FontAwesome icons. For example to add a cog icon next to the title you need to use the following code <i class="glyph-icon icon-cog"></i>
.bg-default class.
.bg-primary class.
.bg-default class.
To create a separator for the header title icon you need to wrap it inside an element with the .icon-separator CSS class.
.bg-default class.
.bg-primary class.
.bg-default class.
You have the option to insert single buttons in the content boxes headers using the default button markup.
.bg-default class.
.bg-default class.
.bg-default class.
.bg-primary class.
.bg-blue class.
You can also include button groups in the content box headers using the markup below.
.bg-white class and .bg-black for the content wrapper.
.bg-white class and .bg-black-alt for the content wrapper.
The separated buttons have a lighter background color than the content box header.
.bg-default.
.bg-primary.
.bg-white.
.bg-black.
.bg-blue.
.bg-black.
Context boxes header can also contain badges and/or labels.
To create a top border content box example, like the ones below, you need to add the following CSS helper classes to the .conten-box wrapper: .border-top and border-red. To achieve different border colors, replace "-red" with "-blue", "-blue-alt", "-green", "-orange", etc
To create a footer button pane add a div with the .button-pane CSS class after the .content-box-wrapper element. To create a button pane above the content wrapper, move the .button-pane element above the .content-box-wrapper in the DOM add .button-pane-top CSS class to it.
.bg-default class.
.bg-default class.
Add .refresh-button CSS class to the element that you want to trigger the content box loading overlay. You can control the overlay color using the data-theme="bg-green"> parameter. For lighter color data-theme parameter use data-style="light" and for darker ones, use data-style="dark". Opacity can be controlled using the data-opacity="80"> parameter. Accepted values are: 30, 60, 80, 100.
.bg-default.
.bg-default.
Add .toggle-button CSS class to the element that you want to trigger the content slide toggle.
.bg-default.
Add .hide CSS class to the .content-box-wrapper element that you want to show on toggle trigger.
Add .hidden-button CSS class to the .content-box element to make the content box header elements that have the .label-hide CSS class, initially hidden and show them only on content box hover.
Add .remove-button CSS class to the element that you want to trigger the content box remove. To control the animation used for the removal, use the data-animation="flipOutY" parameter. To learn more about the animation you can use, read the Animations documentation page.
.bg-black.
.bg-white.
.bg-default.
.bg-default.
Use the markup below to create content panels.