
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-primaryand 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-primaryclass..bg-purpleclass..bg-yellowclass..bg-blueclass..bg-whiteclass..bg-blackclass..bg-blackclass..bg-blue-altclass.Use the example below to create a content box with a two-line header title.
.bg-defaultclass.You can add icons to the content box header titles using the FontAwesomeicons. 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-defaultclass..bg-primaryclass..bg-defaultclass.To create a separator for the header title icon you need to wrap it inside an element with the .icon-separatorCSS class.
.bg-defaultclass..bg-primaryclass..bg-defaultclass.You have the option to insert single buttons in the content boxes headers using the default button markup.
.bg-defaultclass..bg-defaultclass..bg-defaultclass..bg-primaryclass..bg-blueclass.You can also include button groups in the content box headers using the markup below.
.bg-whiteclass and .bg-blackfor the content wrapper..bg-whiteclass and .bg-black-altfor 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-boxwrapper: .border-topand 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-paneCSS class after the .content-box-wrapperelement. To create a button pane above the content wrapper, move the .button-paneelement above the .content-box-wrapperin the DOM add .button-pane-topCSS class to it.
.bg-defaultclass..bg-defaultclass.Add .refresh-buttonCSS 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-buttonCSS class to the element that you want to trigger the content slide toggle.
.bg-default.Add .hideCSS class to the .content-box-wrapperelement that you want to show on toggle trigger.
Add .hidden-buttonCSS class to the .content-boxelement to make the content box header elements that have the .label-hideCSS class, initially hidden and show them only on content box hover.
Add .remove-buttonCSS 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.