mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-29 23:09:05 +02:00
remove .nav-list, instead use .nav-stacked on .nav-tabs or .nav-pills from now on
This commit is contained in:
@@ -740,6 +740,16 @@
|
||||
</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-tabs nav-stacked">
|
||||
...
|
||||
<li class="divider"></li>
|
||||
...
|
||||
</ul>
|
||||
</pre>
|
||||
|
||||
|
||||
<hr class="bs-docs-separator">
|
||||
|
||||
@@ -813,53 +823,6 @@
|
||||
</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="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>
|
||||
<li><a href="#">Library</a></li>
|
||||
<li><a href="#">Applications</a></li>
|
||||
<li class="nav-header">Another list header</li>
|
||||
<li><a href="#">Profile</a></li>
|
||||
<li><a href="#">Settings</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#">Help</a></li>
|
||||
</ul>
|
||||
</div> <!-- /well -->
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<ul class="nav nav-list">
|
||||
<li class="nav-header">List header</li>
|
||||
<li class="active"><a href="#">Home</a></li>
|
||||
<li><a href="#">Library</a></li>
|
||||
...
|
||||
</ul>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="label label-info">Note</span>
|
||||
For nesting within a nav list, include <code>class="nav nav-list"</code> on any nested <code><ul></code>.
|
||||
</p>
|
||||
|
||||
<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>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user