mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
rewrite the rest of the nav section
This commit is contained in:
parent
c90c66e61f
commit
a0cd886c56
3 changed files with 404 additions and 371 deletions
|
@ -745,7 +745,8 @@ form.well {
|
|||
.bs-docs-example .alert,
|
||||
.bs-docs-example .hero-unit,
|
||||
.bs-docs-example .pagination,
|
||||
.bs-docs-example .navbar {
|
||||
.bs-docs-example .navbar,
|
||||
.bs-docs-example .nav {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.bs-docs-example .pagination {
|
||||
|
|
|
@ -532,21 +532,17 @@
|
|||
</div>
|
||||
|
||||
<h2>Lightweight defaults <small>Same markup, different classes</small></h2>
|
||||
|
||||
<h3>Powerful base class</h3>
|
||||
<p>All nav components here—tabs, pills, and lists—<strong>share the same base markup and styles</strong> through the <code>.nav</code> class.</p>
|
||||
<h3>When to use</h3>
|
||||
<p>Tabs and pills are great for sections of content or navigating between pages of related content.</p>
|
||||
<h3>Component alignment</h3>
|
||||
<p>To align nav links, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.</p>
|
||||
|
||||
<h3>Basic tabs</h3>
|
||||
<p>Take a regular <code><ul></code> of links and add <code>.nav-tabs</code>:</p>
|
||||
<div class="bs-docs-example">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#">Home</a></li>
|
||||
<li><a href="#">Profile</a></li>
|
||||
<li><a href="#">Messages</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active">
|
||||
|
@ -559,11 +555,13 @@
|
|||
|
||||
<h3>Basic pills</h3>
|
||||
<p>Take that same HTML, but use <code>.nav-pills</code> instead:</p>
|
||||
<div class="bs-docs-example">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="#">Home</a></li>
|
||||
<li><a href="#">Profile</a></li>
|
||||
<li><a href="#">Messages</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active">
|
||||
|
@ -574,18 +572,24 @@
|
|||
</ul>
|
||||
</pre>
|
||||
|
||||
<h3>Component alignment</h3>
|
||||
<p>To align nav links, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.</p>
|
||||
|
||||
<h2>Stackable <small>Make tabs or pills vertical</small></h2>
|
||||
|
||||
<h3>How to stack 'em</h3>
|
||||
<hr class="bs-docs-separator">
|
||||
|
||||
|
||||
<h2>Stackable</h2>
|
||||
<p>As tabs and pills are horizontal by default, just add a second class, <code>.nav-stacked</code>, to make them appear vertically stacked.</p>
|
||||
|
||||
<h3>Stacked tabs</h3>
|
||||
<div class="bs-docs-example">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
<li class="active"><a href="#">Home</a></li>
|
||||
<li><a href="#">Profile</a></li>
|
||||
<li><a href="#">Messages</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
...
|
||||
|
@ -593,24 +597,28 @@
|
|||
</pre>
|
||||
|
||||
<h3>Stacked pills</h3>
|
||||
<div class="bs-docs-example">
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
<li class="active"><a href="#">Home</a></li>
|
||||
<li><a href="#">Profile</a></li>
|
||||
<li><a href="#">Messages</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
...
|
||||
</ul>
|
||||
</pre>
|
||||
|
||||
<h2>Dropdowns <small>For advanced nav components</small></h2>
|
||||
|
||||
<h3>Rich menus made easy</h3>
|
||||
<p>Dropdown menus in Bootstrap tabs and pills are super easy and require only a little extra HTML and a lightweight jQuery plugin.</p>
|
||||
<p>Head over to the Javascript page to read the docs on <a href="./javascript.html#tabs">initializing dropdowns</a> in Bootstrap.</p>
|
||||
<hr class="bs-docs-separator">
|
||||
|
||||
|
||||
<h2>Dropdowns</h2>
|
||||
<p>Add dropdown menus with a little extra HTML and the <a href="./javascript.html#dropdowns">dropdowns javascript plugin</a>.</p>
|
||||
|
||||
<h3>Tabs with dropdowns</h3>
|
||||
<div class="bs-docs-example">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#">Home</a></li>
|
||||
<li><a href="#">Help</a></li>
|
||||
|
@ -625,6 +633,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="dropdown">
|
||||
|
@ -642,6 +651,7 @@
|
|||
</pre>
|
||||
|
||||
<h3>Pills with dropdowns</h3>
|
||||
<div class="bs-docs-example">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="#">Home</a></li>
|
||||
<li><a href="#">Help</a></li>
|
||||
|
@ -656,6 +666,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -672,27 +683,17 @@
|
|||
</ul>
|
||||
</pre>
|
||||
|
||||
<h2>Nav lists <small>Build simple stacked navs, great for sidebars</small></h2>
|
||||
|
||||
<h3>Application-style navigation</h3>
|
||||
<p>Nav lists provide a simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.</p>
|
||||
<p>Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.</p>
|
||||
<hr>
|
||||
<h4>With icons</h4>
|
||||
<p>Nav lists are also easy to equip with icons. Add the proper <code><i></code> tag with class and you're set.</p>
|
||||
<h4>Horizontal dividers</h4>
|
||||
<p>Add a horizontal divider by creating an empty list item with the class <code>.divider</code>, like so:</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-list">
|
||||
...
|
||||
<li class="divider"></li>
|
||||
...
|
||||
</ul>
|
||||
</pre>
|
||||
<hr class="bs-docs-separator">
|
||||
|
||||
|
||||
<h2>Nav lists</h2>
|
||||
<p>A simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.</p>
|
||||
|
||||
<h3>Example nav list</h3>
|
||||
<p>Take a list of links and add <code>class="nav nav-list"</code>:</p>
|
||||
<div class="well" style="padding: 8px 0;">
|
||||
<div class="bs-docs-example">
|
||||
<div class="well" style="max-width: 340px; padding: 8px 0;">
|
||||
<ul class="nav nav-list">
|
||||
<li class="nav-header">List header</li>
|
||||
<li class="active"><a href="#">Home</a></li>
|
||||
|
@ -705,6 +706,7 @@
|
|||
<li><a href="#">Help</a></li>
|
||||
</ul>
|
||||
</div> <!-- /well -->
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-list">
|
||||
<li class="nav-header">
|
||||
|
@ -722,7 +724,8 @@
|
|||
|
||||
<h3>Example with icons</h3>
|
||||
<p>Same example, but with <code><i></code> tags for icons.</p>
|
||||
<div class="well" style="padding: 8px 0;">
|
||||
<div class="bs-docs-example">
|
||||
<div class="well" style="max-width: 340px; padding: 8px 0;">
|
||||
<ul class="nav nav-list">
|
||||
<li class="nav-header">List header</li>
|
||||
<li class="active"><a href="#"><i class="icon-white icon-home"></i> Home</a></li>
|
||||
|
@ -735,6 +738,7 @@
|
|||
<li><a href="#"><i class="icon-flag"></i> Help</a></li>
|
||||
</ul>
|
||||
</div> <!-- /well -->
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-list">
|
||||
...
|
||||
|
@ -748,22 +752,26 @@
|
|||
</ul>
|
||||
</pre>
|
||||
|
||||
<h3>Horizontal dividers</h3>
|
||||
<p>Add a horizontal divider by creating an empty list item with the class <code>.divider</code>, like so:</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-list">
|
||||
...
|
||||
<li class="divider"></li>
|
||||
...
|
||||
</ul>
|
||||
</pre>
|
||||
|
||||
<h2>Tabbable nav <small>Bring tabs to life via javascript</small></h2>
|
||||
|
||||
<h3>What's included</h3>
|
||||
<hr class="bs-docs-separator">
|
||||
|
||||
|
||||
<h2>Tabbable nav</h2>
|
||||
<p>Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.</p>
|
||||
<p>Changing between them is easy and only requires changing very little markup.</p>
|
||||
<hr>
|
||||
<h4>Fade in tabs</h4>
|
||||
<p>To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>.</p>
|
||||
<hr>
|
||||
<h4>Requires jQuery plugin</h4>
|
||||
<p>All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life <a href="./javascript.html#tabs">on the javascript docs page</a>.</p>
|
||||
<p><a class="btn" href="./javascript.html#tabs">Get the javascript →</a></p>
|
||||
|
||||
<h3>Tabbable example</h3>
|
||||
<p>To make tabs tabbable, create a <code>.tab-pane</code> with unique ID for every tab and wrap them in <code>.tab-content</code>.</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="tabbable" style="margin-bottom: 18px;">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#tab1" data-toggle="tab">Section 1</a></li>
|
||||
|
@ -782,10 +790,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div> <!-- /tabbable -->
|
||||
<p>For right or left aligned tabs, wrap the <code>.nav-tabs</code> and <code>.tab-content</code> in <code>.tabbable</code>.</p>
|
||||
|
||||
<h3>Straightforward markup</h3>
|
||||
<p>Using tabbable tabs requires a wrapping div, a set of tabs, and a set of tabbable panes of content.</p>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="tabbable"> <!-- Only required for left/right tabs -->
|
||||
<ul class="nav nav-tabs">
|
||||
|
@ -803,11 +808,17 @@
|
|||
</div>
|
||||
</pre>
|
||||
|
||||
<h4>Fade in tabs</h4>
|
||||
<p>To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>.</p>
|
||||
|
||||
<h4>Requires jQuery plugin</h4>
|
||||
<p>All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life <a href="./javascript.html#tabs">on the javascript docs page</a>.</p>
|
||||
|
||||
<h3>Tabbable in any direction</h3>
|
||||
|
||||
<h4>Tabs on the bottom</h4>
|
||||
<p>Flip the order of the HTML and add a class to put tabs on the bottom.</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="tabbable tabs-below">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="A">
|
||||
|
@ -826,7 +837,8 @@
|
|||
<li><a href="#C" data-toggle="tab">Section 3</a></li>
|
||||
</ul>
|
||||
</div> <!-- /tabbable -->
|
||||
<pre class="prettyprint linenums" style="margin-top: 11px;">
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="tabbable tabs-below">
|
||||
<div class="tab-content">
|
||||
...
|
||||
|
@ -839,6 +851,7 @@
|
|||
|
||||
<h4>Tabs on the left</h4>
|
||||
<p>Swap the class to put tabs on the left.</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="tabbable tabs-left">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#lA" data-toggle="tab">Section 1</a></li>
|
||||
|
@ -857,6 +870,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div> <!-- /tabbable -->
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="tabbable tabs-left">
|
||||
<ul class="nav nav-tabs">
|
||||
|
@ -870,6 +884,7 @@
|
|||
|
||||
<h4>Tabs on the right</h4>
|
||||
<p>Swap the class to put tabs on the right.</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="tabbable tabs-right">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#rA" data-toggle="tab">Section 1</a></li>
|
||||
|
@ -888,6 +903,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div> <!-- /tabbable -->
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="tabbable tabs-right">
|
||||
<ul class="nav nav-tabs">
|
||||
|
|
106
docs/templates/pages/components.mustache
vendored
106
docs/templates/pages/components.mustache
vendored
|
@ -455,21 +455,17 @@
|
|||
</div>
|
||||
|
||||
<h2>{{_i}}Lightweight defaults{{/i}} <small>{{_i}}Same markup, different classes{{/i}}</small></h2>
|
||||
|
||||
<h3>{{_i}}Powerful base class{{/i}}</h3>
|
||||
<p>{{_i}}All nav components here—tabs, pills, and lists—<strong>share the same base markup and styles</strong> through the <code>.nav</code> class.{{/i}}</p>
|
||||
<h3>{{_i}}When to use{{/i}}</h3>
|
||||
<p>{{_i}}Tabs and pills are great for sections of content or navigating between pages of related content.{{/i}}</p>
|
||||
<h3>{{_i}}Component alignment{{/i}}</h3>
|
||||
<p>{{_i}}To align nav links, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.{{/i}}</p>
|
||||
|
||||
<h3>{{_i}}Basic tabs{{/i}}</h3>
|
||||
<p>{{_i}}Take a regular <code><ul></code> of links and add <code>.nav-tabs</code>:{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
|
||||
<li><a href="#">{{_i}}Profile{{/i}}</a></li>
|
||||
<li><a href="#">{{_i}}Messages{{/i}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active">
|
||||
|
@ -482,11 +478,13 @@
|
|||
|
||||
<h3>{{_i}}Basic pills{{/i}}</h3>
|
||||
<p>{{_i}}Take that same HTML, but use <code>.nav-pills</code> instead:{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
|
||||
<li><a href="#">{{_i}}Profile{{/i}}</a></li>
|
||||
<li><a href="#">{{_i}}Messages{{/i}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active">
|
||||
|
@ -497,18 +495,24 @@
|
|||
</ul>
|
||||
</pre>
|
||||
|
||||
<h3>{{_i}}Component alignment{{/i}}</h3>
|
||||
<p>{{_i}}To align nav links, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.{{/i}}</p>
|
||||
|
||||
<h2>{{_i}}Stackable{{/i}} <small>{{_i}}Make tabs or pills vertical{{/i}}</small></h2>
|
||||
|
||||
<h3>{{_i}}How to stack 'em{{/i}}</h3>
|
||||
<hr class="bs-docs-separator">
|
||||
|
||||
|
||||
<h2>{{_i}}Stackable{{/i}}</h2>
|
||||
<p>{{_i}}As tabs and pills are horizontal by default, just add a second class, <code>.nav-stacked</code>, to make them appear vertically stacked.{{/i}}</p>
|
||||
|
||||
<h3>{{_i}}Stacked tabs{{/i}}</h3>
|
||||
<div class="bs-docs-example">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
|
||||
<li><a href="#">{{_i}}Profile{{/i}}</a></li>
|
||||
<li><a href="#">{{_i}}Messages{{/i}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
...
|
||||
|
@ -516,24 +520,28 @@
|
|||
</pre>
|
||||
|
||||
<h3>{{_i}}Stacked pills{{/i}}</h3>
|
||||
<div class="bs-docs-example">
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
|
||||
<li><a href="#">{{_i}}Profile{{/i}}</a></li>
|
||||
<li><a href="#">{{_i}}Messages{{/i}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
...
|
||||
</ul>
|
||||
</pre>
|
||||
|
||||
<h2>{{_i}}Dropdowns{{/i}} <small>{{_i}}For advanced nav components{{/i}}</small></h2>
|
||||
|
||||
<h3>{{_i}}Rich menus made easy{{/i}}</h3>
|
||||
<p>{{_i}}Dropdown menus in Bootstrap tabs and pills are super easy and require only a little extra HTML and a lightweight jQuery plugin.{{/i}}</p>
|
||||
<p>{{_i}}Head over to the Javascript page to read the docs on <a href="./javascript.html#tabs">initializing dropdowns</a> in Bootstrap.{{/i}}</p>
|
||||
<hr class="bs-docs-separator">
|
||||
|
||||
|
||||
<h2>{{_i}}Dropdowns{{/i}}</h2>
|
||||
<p>{{_i}}Add dropdown menus with a little extra HTML and the <a href="./javascript.html#dropdowns">dropdowns javascript plugin</a>.{{/i}}</p>
|
||||
|
||||
<h3>{{_i}}Tabs with dropdowns{{/i}}</h3>
|
||||
<div class="bs-docs-example">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
|
||||
<li><a href="#">{{_i}}Help{{/i}}</a></li>
|
||||
|
@ -548,6 +556,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="dropdown">
|
||||
|
@ -565,6 +574,7 @@
|
|||
</pre>
|
||||
|
||||
<h3>{{_i}}Pills with dropdowns{{/i}}</h3>
|
||||
<div class="bs-docs-example">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
|
||||
<li><a href="#">{{_i}}Help{{/i}}</a></li>
|
||||
|
@ -579,6 +589,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>{{! /example }}
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -595,27 +606,17 @@
|
|||
</ul>
|
||||
</pre>
|
||||
|
||||
<h2>{{_i}}Nav lists{{/i}} <small>{{_i}}Build simple stacked navs, great for sidebars{{/i}}</small></h2>
|
||||
|
||||
<h3>{{_i}}Application-style navigation{{/i}}</h3>
|
||||
<p>{{_i}}Nav lists provide a simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}</p>
|
||||
<p>{{_i}}Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.{{/i}}</p>
|
||||
<hr>
|
||||
<h4>{{_i}}With icons{{/i}}</h4>
|
||||
<p>{{_i}}Nav lists are also easy to equip with icons. Add the proper <code><i></code> tag with class and you're set.{{/i}}</p>
|
||||
<h4>{{_i}}Horizontal dividers{{/i}}</h4>
|
||||
<p>{{_i}}Add a horizontal divider by creating an empty list item with the class <code>.divider</code>, like so:{{/i}}</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-list">
|
||||
...
|
||||
<li class="divider"></li>
|
||||
...
|
||||
</ul>
|
||||
</pre>
|
||||
<hr class="bs-docs-separator">
|
||||
|
||||
|
||||
<h2>{{_i}}Nav lists{{/i}}</h2>
|
||||
<p>{{_i}}A simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}</p>
|
||||
|
||||
<h3>{{_i}}Example nav list{{/i}}</h3>
|
||||
<p>{{_i}}Take a list of links and add <code>class="nav nav-list"</code>:{{/i}}</p>
|
||||
<div class="well" style="padding: 8px 0;">
|
||||
<div class="bs-docs-example">
|
||||
<div class="well" style="max-width: 340px; padding: 8px 0;">
|
||||
<ul class="nav nav-list">
|
||||
<li class="nav-header">{{_i}}List header{{/i}}</li>
|
||||
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
|
||||
|
@ -628,6 +629,7 @@
|
|||
<li><a href="#">{{_i}}Help{{/i}}</a></li>
|
||||
</ul>
|
||||
</div> <!-- /well -->
|
||||
</div>{{! /example }}
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-list">
|
||||
<li class="nav-header">
|
||||
|
@ -645,7 +647,8 @@
|
|||
|
||||
<h3>{{_i}}Example with icons{{/i}}</h3>
|
||||
<p>{{_i}}Same example, but with <code><i></code> tags for icons.{{/i}}</p>
|
||||
<div class="well" style="padding: 8px 0;">
|
||||
<div class="bs-docs-example">
|
||||
<div class="well" style="max-width: 340px; padding: 8px 0;">
|
||||
<ul class="nav nav-list">
|
||||
<li class="nav-header">{{_i}}List header{{/i}}</li>
|
||||
<li class="active"><a href="#"><i class="icon-white icon-home"></i> {{_i}}Home{{/i}}</a></li>
|
||||
|
@ -658,6 +661,7 @@
|
|||
<li><a href="#"><i class="icon-flag"></i> {{_i}}Help{{/i}}</a></li>
|
||||
</ul>
|
||||
</div> <!-- /well -->
|
||||
</div>{{! /example }}
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-list">
|
||||
...
|
||||
|
@ -671,22 +675,26 @@
|
|||
</ul>
|
||||
</pre>
|
||||
|
||||
<h3>{{_i}}Horizontal dividers{{/i}}</h3>
|
||||
<p>{{_i}}Add a horizontal divider by creating an empty list item with the class <code>.divider</code>, like so:{{/i}}</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-list">
|
||||
...
|
||||
<li class="divider"></li>
|
||||
...
|
||||
</ul>
|
||||
</pre>
|
||||
|
||||
<h2>{{_i}}Tabbable nav{{/i}} <small>{{_i}}Bring tabs to life via javascript{{/i}}</small></h2>
|
||||
|
||||
<h3>{{_i}}What's included{{/i}}</h3>
|
||||
<hr class="bs-docs-separator">
|
||||
|
||||
|
||||
<h2>{{_i}}Tabbable nav{{/i}}</h2>
|
||||
<p>{{_i}}Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.{{/i}}</p>
|
||||
<p>{{_i}}Changing between them is easy and only requires changing very little markup.{{/i}}</p>
|
||||
<hr>
|
||||
<h4>{{_i}}Fade in tabs{{/i}}</h4>
|
||||
<p>{{_i}}To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>.{{/i}}</p>
|
||||
<hr>
|
||||
<h4>{{_i}}Requires jQuery plugin{{/i}}</h4>
|
||||
<p>{{_i}}All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life <a href="./javascript.html#tabs">on the javascript docs page</a>.{{/i}}</p>
|
||||
<p><a class="btn" href="./javascript.html#tabs">{{_i}}Get the javascript →{{/i}}</a></p>
|
||||
|
||||
<h3>{{_i}}Tabbable example{{/i}}</h3>
|
||||
<p>{{_i}}To make tabs tabbable, create a <code>.tab-pane</code> with unique ID for every tab and wrap them in <code>.tab-content</code>.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="tabbable" style="margin-bottom: 18px;">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#tab1" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
|
||||
|
@ -705,10 +713,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div> <!-- /tabbable -->
|
||||
<p>{{_i}}For right or left aligned tabs, wrap the <code>.nav-tabs</code> and <code>.tab-content</code> in <code>.tabbable</code>.{{/i}}</p>
|
||||
|
||||
<h3>{{_i}}Straightforward markup{{/i}}</h3>
|
||||
<p>{{_i}}Using tabbable tabs requires a wrapping div, a set of tabs, and a set of tabbable panes of content.{{/i}}</p>
|
||||
</div>{{! /example }}
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="tabbable"> <!-- Only required for left/right tabs -->
|
||||
<ul class="nav nav-tabs">
|
||||
|
@ -726,11 +731,17 @@
|
|||
</div>
|
||||
</pre>
|
||||
|
||||
<h4>{{_i}}Fade in tabs{{/i}}</h4>
|
||||
<p>{{_i}}To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>.{{/i}}</p>
|
||||
|
||||
<h4>{{_i}}Requires jQuery plugin{{/i}}</h4>
|
||||
<p>{{_i}}All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life <a href="./javascript.html#tabs">on the javascript docs page</a>.{{/i}}</p>
|
||||
|
||||
<h3>{{_i}}Tabbable in any direction{{/i}}</h3>
|
||||
|
||||
<h4>{{_i}}Tabs on the bottom{{/i}}</h4>
|
||||
<p>{{_i}}Flip the order of the HTML and add a class to put tabs on the bottom.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="tabbable tabs-below">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="A">
|
||||
|
@ -749,7 +760,8 @@
|
|||
<li><a href="#C" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
|
||||
</ul>
|
||||
</div> <!-- /tabbable -->
|
||||
<pre class="prettyprint linenums" style="margin-top: 11px;">
|
||||
</div>{{! /example }}
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="tabbable tabs-below">
|
||||
<div class="tab-content">
|
||||
...
|
||||
|
@ -762,6 +774,7 @@
|
|||
|
||||
<h4>{{_i}}Tabs on the left{{/i}}</h4>
|
||||
<p>{{_i}}Swap the class to put tabs on the left.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="tabbable tabs-left">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#lA" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
|
||||
|
@ -780,6 +793,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div> <!-- /tabbable -->
|
||||
</div>{{! /example }}
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="tabbable tabs-left">
|
||||
<ul class="nav nav-tabs">
|
||||
|
@ -793,6 +807,7 @@
|
|||
|
||||
<h4>{{_i}}Tabs on the right{{/i}}</h4>
|
||||
<p>{{_i}}Swap the class to put tabs on the right.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="tabbable tabs-right">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#rA" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
|
||||
|
@ -811,6 +826,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div> <!-- /tabbable -->
|
||||
</div>{{! /example }}
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="tabbable tabs-right">
|
||||
<ul class="nav nav-tabs">
|
||||
|
|
Loading…
Add table
Reference in a new issue