AdminFlare is based on the Twitter Bootstrap Grid System. The default Bootstrap grid system utilizes 12 columns. With the responsive CSS file the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become stack vertically.

Stacked-left layout

By default AdminFlare uses stacked-left layout.

Centered layout

To use centered layout add .centered-layout to <body>.

Fluid layout

To use fluid layout add .fluid-layout to <body>.

Grid example

For a multi column layout, create a .row-fluid and add the appropriate number of .span* columns. As this is a 12-column grid, each .span* spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent).

<div class="row-fluid">
  <div class="span1">1</div>
  <div class="span1">1</div>
  <div class="span1">1</div>
  ...
</div>
...
1
1
1
1
1
1
1
1
1
1
1
1
3
4
5
4
8
12

Offsetting columns

Move columns to the right using .offset* classes. Each class increases the left margin of a column by a whole column. For example, .offset4 moves .span4 over four columns.

<div class="row-fluid">
  <div class="span6">...</div>
  <div class="span4 offset2">...</div>
</div>
...
6
4 offset 2
4 offset 1
4 offset 3
8 offset 4

Nesting columns

To nest your content with the default grid, add a new .row-fluid and set of .span* columns within an existing .span* column. Nested rows should include a set of columns that add up to the number of columns of its parent.

<div class="row-fluid">
  <div class="span9">
	Level 1 column
	<div class="row-fluid">
	  <div class="span6">Level 2</div>
	  <div class="span3">Level 2</div>
	</div>
  </div>
</div>
Level 1 column
Level 2
Level 2

Boxes

Boxes that follows a .box-header can be collapsed by clicking on the hide link. If you need a non-collapsible box, just add a .non-collapsible to the .box.

<h3 class="box-header">
  Box Example
</h3>
<div class="box">
  <div class="span3">Column 1</div>
  <div class="span6">Column 2</div>
  <div class="span3">Column 3</div>
</div>

Box Example

Column 1
Column 2
Column 3
<h3 class="box-header">
  Non-bordered Box Example
</h3>
<div class="box no-border non-collapsible">
  <div class="span3">Column 1</div>
  <div class="span6">Column 2</div>
  <div class="span3">Column 3</div>
</div>

Non-bordered Box Example

Column 1
Column 2
Column 3