diff options
| author | Mark Otto <[email protected]> | 2012-01-08 03:18:48 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-01-08 03:18:48 -0800 |
| commit | 21eb2dac8a650ba13dabb41fd2d221ff918cdd30 (patch) | |
| tree | 1032e0435f49a207f9e5e068403bda248666569b /docs | |
| parent | 2376da40fb020289bcec4d2fe49ca2dc6f4eae97 (diff) | |
| download | bootstrap-21eb2dac8a650ba13dabb41fd2d221ff918cdd30.tar.xz bootstrap-21eb2dac8a650ba13dabb41fd2d221ff918cdd30.zip | |
add icons in nav list example and markup
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/components.html | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/docs/components.html b/docs/components.html index 3208e2390..2a9d15846 100644 --- a/docs/components.html +++ b/docs/components.html @@ -222,9 +222,12 @@ <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> + <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> </div> <div class="span4"> - <h3>Example sidebar navigation</h3> + <h3>Example nav list</h3> + <p>Take a list of links and add <code>class="nav list"</code>:</p> <div class="well" style="padding: 8px 0;"> <ul class="nav list"> <li class="nav-header">List header</li> @@ -237,9 +240,6 @@ <li><a href="#">Help</a></li> </ul> </div> <!-- /well --> - </div> - <div class="span4"> - <h3>Simple markup</h3> <pre class="prettyprint linenums"> <ul class="nav list"> <li class="nav-header"> @@ -255,6 +255,34 @@ </ul> </pre> </div> + <div class="span4"> + <h3>Example with icons</h3> + <p>Same example, but with <code><i></code> tags for icons.</p> + <div class="well" style="padding: 8px 0;"> + <ul class="nav list"> + <li class="nav-header">List header</li> + <li class="active"><a href="#"><i class="home"></i> Home</a></li> + <li><a href="#"><i class="book"></i> Library</a></li> + <li><a href="#"><i class="pencil"></i> Applications</a></li> + <li class="nav-header">Another list header</li> + <li><a href="#"><i class="user"></i> Profile</a></li> + <li><a href="#"><i class="cog"></i> Settings</a></li> + <li><a href="#"><i class="flag"></i> Help</a></li> + </ul> + </div> <!-- /well --> +<pre class="prettyprint linenums"> +<ul class="nav list"> + ... + <li> + <a href="#"> + <i class="book"></i> + Library + </a> + </li> + ... +</ul> +</pre> + </div> </div> |
