diff options
| author | Mark Otto <[email protected]> | 2014-03-16 19:03:53 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-03-16 19:03:53 -0700 |
| commit | 2a43e7e78a59c70e217383c12c9ef0482cabb163 (patch) | |
| tree | 8fc0b4560d171f63efb353d4c9965aa5c761d82c /docs/_includes/components/panels.html | |
| parent | bdb70fa471965728609d86c001384791fa44398b (diff) | |
| download | bootstrap-2a43e7e78a59c70e217383c12c9ef0482cabb163.tar.xz bootstrap-2a43e7e78a59c70e217383c12c9ef0482cabb163.zip | |
Break up docs into includes
Diffstat (limited to 'docs/_includes/components/panels.html')
| -rw-r--r-- | docs/_includes/components/panels.html | 278 |
1 files changed, 278 insertions, 0 deletions
diff --git a/docs/_includes/components/panels.html b/docs/_includes/components/panels.html new file mode 100644 index 000000000..b00cd0f72 --- /dev/null +++ b/docs/_includes/components/panels.html @@ -0,0 +1,278 @@ +<div class="bs-docs-section"> + <h1 id="panels" class="page-header">Panels</h1> + + <p class="lead">While not always necessary, sometimes you need to put your DOM in a box. For those situations, try the panel component.</p> + + <h3 id="panels-basic">Basic example</h3> + <p>By default, all the <code>.panel</code> does is apply some basic border and padding to contain some content.</p> + <div class="bs-example"> + <div class="panel panel-default"> + <div class="panel-body"> + Basic panel example + </div> + </div> + </div> +{% highlight html %} +<div class="panel panel-default"> + <div class="panel-body"> + Basic panel example + </div> +</div> +{% endhighlight %} + + <h3 id="panels-heading">Panel with heading</h3> + <p>Easily add a heading container to your panel with <code>.panel-heading</code>. You may also include any <code><h1></code>-<code><h6></code> with a <code>.panel-title</code> class to add a pre-styled heading.</p> + <div class="bs-example"> + <div class="panel panel-default"> + <div class="panel-heading">Panel heading without title</div> + <div class="panel-body"> + Panel content + </div> + </div> + <div class="panel panel-default"> + <div class="panel-heading"> + <h3 class="panel-title">Panel title</h3> + </div> + <div class="panel-body"> + Panel content + </div> + </div> + </div> +{% highlight html %} +<div class="panel panel-default"> + <div class="panel-heading">Panel heading without title</div> + <div class="panel-body"> + Panel content + </div> +</div> + +<div class="panel panel-default"> + <div class="panel-heading"> + <h3 class="panel-title">Panel title</h3> + </div> + <div class="panel-body"> + Panel content + </div> +</div> +{% endhighlight %} + + <h3 id="panels-footer">Panel with footer</h3> + <p>Wrap buttons or secondary text in <code>.panel-footer</code>. Note that panel footers <strong>do not</strong> inherit colors and borders when using contextual variations as they are not meant to be in the foreground.</p> + <div class="bs-example"> + <div class="panel panel-default"> + <div class="panel-body"> + Panel content + </div> + <div class="panel-footer">Panel footer</div> + </div> + </div> +{% highlight html %} +<div class="panel panel-default"> + <div class="panel-body"> + Panel content + </div> + <div class="panel-footer">Panel footer</div> +</div> +{% endhighlight %} + + <h3 id="panels-alternatives">Contextual alternatives</h3> + <p>Like other components, easily make a panel more meaningful to a particular context by adding any of the contextual state classes.</p> + <div class="bs-example"> + <div class="panel panel-primary"> + <div class="panel-heading"> + <h3 class="panel-title">Panel title</h3> + </div> + <div class="panel-body"> + Panel content + </div> + </div> + <div class="panel panel-success"> + <div class="panel-heading"> + <h3 class="panel-title">Panel title</h3> + </div> + <div class="panel-body"> + Panel content + </div> + </div> + <div class="panel panel-info"> + <div class="panel-heading"> + <h3 class="panel-title">Panel title</h3> + </div> + <div class="panel-body"> + Panel content + </div> + </div> + <div class="panel panel-warning"> + <div class="panel-heading"> + <h3 class="panel-title">Panel title</h3> + </div> + <div class="panel-body"> + Panel content + </div> + </div> + <div class="panel panel-danger"> + <div class="panel-heading"> + <h3 class="panel-title">Panel title</h3> + </div> + <div class="panel-body"> + Panel content + </div> + </div> + </div> +{% highlight html %} +<div class="panel panel-primary">...</div> +<div class="panel panel-success">...</div> +<div class="panel panel-info">...</div> +<div class="panel panel-warning">...</div> +<div class="panel panel-danger">...</div> +{% endhighlight %} + + <h3 id="panels-tables">With tables</h3> + <p>Add any non-bordered <code>.table</code> within a panel for a seamless design. If there is a <code>.panel-body</code>, we add an extra border to the top of the table for separation.</p> + <div class="bs-example"> + <div class="panel panel-default"> + <!-- Default panel contents --> + <div class="panel-heading">Panel heading</div> + <div class="panel-body"> + <p>Some default panel content here. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> + </div> + + <!-- Table --> + <table class="table"> + <thead> + <tr> + <th>#</th> + <th>First Name</th> + <th>Last Name</th> + <th>Username</th> + </tr> + </thead> + <tbody> + <tr> + <td>1</td> + <td>Mark</td> + <td>Otto</td> + <td>@mdo</td> + </tr> + <tr> + <td>2</td> + <td>Jacob</td> + <td>Thornton</td> + <td>@fat</td> + </tr> + <tr> + <td>3</td> + <td>Larry</td> + <td>the Bird</td> + <td>@twitter</td> + </tr> + </tbody> + </table> + </div> + </div> +{% highlight html %} +<div class="panel panel-default"> + <!-- Default panel contents --> + <div class="panel-heading">Panel heading</div> + <div class="panel-body"> + <p>...</p> + </div> + + <!-- Table --> + <table class="table"> + ... + </table> +</div> +{% endhighlight %} + + <p>If there is no panel body, the component moves from panel header to table without interruption.</p> + <div class="bs-example"> + <div class="panel panel-default"> + <!-- Default panel contents --> + <div class="panel-heading">Panel heading</div> + + <!-- Table --> + <table class="table"> + <thead> + <tr> + <th>#</th> + <th>First Name</th> + <th>Last Name</th> + <th>Username</th> + </tr> + </thead> + <tbody> + <tr> + <td>1</td> + <td>Mark</td> + <td>Otto</td> + <td>@mdo</td> + </tr> + <tr> + <td>2</td> + <td>Jacob</td> + <td>Thornton</td> + <td>@fat</td> + </tr> + <tr> + <td>3</td> + <td>Larry</td> + <td>the Bird</td> + <td>@twitter</td> + </tr> + </tbody> + </table> + </div> + </div> +{% highlight html %} +<div class="panel panel-default"> + <!-- Default panel contents --> + <div class="panel-heading">Panel heading</div> + + <!-- Table --> + <table class="table"> + ... + </table> +</div> +{% endhighlight %} + + + <h3 id="panels-list-group">With list groups</h3> + <p>Easily include full-width <a href="#list-group">list groups</a> within any panel.</p> + <div class="bs-example"> + <div class="panel panel-default"> + <!-- Default panel contents --> + <div class="panel-heading">Panel heading</div> + <div class="panel-body"> + <p>Some default panel content here. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> + </div> + + <!-- List group --> + <ul class="list-group"> + <li class="list-group-item">Cras justo odio</li> + <li class="list-group-item">Dapibus ac facilisis in</li> + <li class="list-group-item">Morbi leo risus</li> + <li class="list-group-item">Porta ac consectetur ac</li> + <li class="list-group-item">Vestibulum at eros</li> + </ul> + </div> + </div> +{% highlight html %} +<div class="panel panel-default"> + <!-- Default panel contents --> + <div class="panel-heading">Panel heading</div> + <div class="panel-body"> + <p>...</p> + </div> + + <!-- List group --> + <ul class="list-group"> + <li class="list-group-item">Cras justo odio</li> + <li class="list-group-item">Dapibus ac facilisis in</li> + <li class="list-group-item">Morbi leo risus</li> + <li class="list-group-item">Porta ac consectetur ac</li> + <li class="list-group-item">Vestibulum at eros</li> + </ul> +</div> +{% endhighlight %} +</div> |
