]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add note to components about nav list nesting
authorMark Otto <markotto@twitter.com>
Tue, 19 Jun 2012 22:25:35 +0000 (15:25 -0700)
committerMark Otto <markotto@twitter.com>
Tue, 19 Jun 2012 22:25:35 +0000 (15:25 -0700)
docs/components.html
docs/templates/pages/components.mustache

index d70218163fe95126936fde1dba5add90145e1a68..825e9fdac0a267a8e296e9cb526455b6b8cd5be4 100644 (file)
   </div>
 <pre class="prettyprint linenums">
 &lt;ul class="nav nav-list"&gt;
-  &lt;li class="nav-header"&gt;
-    List header
-  &lt;/li&gt;
-  &lt;li class="active"&gt;
-    &lt;a href="#"&gt;Home&lt;/a&gt;
-  &lt;/li&gt;
-  &lt;li&gt;
-    &lt;a href="#"&gt;Library&lt;/a&gt;
-  &lt;/li&gt;
+  &lt;li class="nav-header"&gt;List header&lt;/li&gt;
+  &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href="#"&gt;Library&lt;/a&gt;&lt;/li&gt;
   ...
 &lt;/ul&gt;
 </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>&lt;ul&gt;</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>
index f84a686ca07e26635acbab52bbf43ea3886c69c3..1e6d6fe41596c5f31dee42efc79f97aff397faea 100644 (file)
   </div>{{! /example }}
 <pre class="prettyprint linenums">
 &lt;ul class="nav nav-list"&gt;
-  &lt;li class="nav-header"&gt;
-    {{_i}}List header{{/i}}
-  &lt;/li&gt;
-  &lt;li class="active"&gt;
-    &lt;a href="#"&gt;{{_i}}Home{{/i}}&lt;/a&gt;
-  &lt;/li&gt;
-  &lt;li&gt;
-    &lt;a href="#"&gt;{{_i}}Library{{/i}}&lt;/a&gt;
-  &lt;/li&gt;
+  &lt;li class="nav-header"&gt;{{_i}}List header{{/i}}&lt;/li&gt;
+  &lt;li class="active"&gt;&lt;a href="#"&gt;{{_i}}Home{{/i}}&lt;/a&gt;&lt;/li&gt;
+  &lt;li&gt;&lt;a href="#"&gt;{{_i}}Library{{/i}}&lt;/a&gt;&lt;/li&gt;
   ...
 &lt;/ul&gt;
 </pre>
+  <p>
+    <span class="label label-info">{{_i}}Note{{/i}}</span>
+    {{_i}}For nesting within a nav list, include <code>class="nav nav-list"</code> on any nested <code>&lt;ul&gt;</code>.{{/i}}
+  </p>
 
   <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>