aboutsummaryrefslogtreecommitdiff
path: root/docs/components.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-02-05 00:59:22 -0800
committerMark Otto <[email protected]>2013-02-05 00:59:22 -0800
commit2576e6d1d6fe36fdec782a44bccf0d9ab239ef2b (patch)
tree0d13dbbd492d8b16b8438e30f1aa866020206c45 /docs/components.html
parentcf78f4b010b2b30bb973cf10f36a06105abe9370 (diff)
downloadbootstrap-2576e6d1d6fe36fdec782a44bccf0d9ab239ef2b.tar.xz
bootstrap-2576e6d1d6fe36fdec782a44bccf0d9ab239ef2b.zip
reorder counters docs
Diffstat (limited to 'docs/components.html')
-rw-r--r--docs/components.html17
1 files changed, 10 insertions, 7 deletions
diff --git a/docs/components.html b/docs/components.html
index 463c2678e..46b4fde49 100644
--- a/docs/components.html
+++ b/docs/components.html
@@ -1252,16 +1252,22 @@
<div class="page-header">
<h1>Counters</h1>
</div>
+ <p class="lead">Easily highlight new or unread items by adding a <code>&lt;span class="counter"&gt;</code> to links, Bootstrap navs, and more.</p>
- <h3>Basic usage</h3>
- <p>Counters are used to indicator unread or new items. Add a <code>&lt;span class="counter"&gt;</code> to links, Bootstrap navs, and more.</p>
<div class="bs-docs-example">
- <a href="#">Inbox</a> <span class="counter">42</span>
+ <a href="#">Inbox <span class="counter">42</span></a>
</div>
<pre class="prettyprint linenums">
-&lt;a href="#"&gt;Inbox&lt;/a&gt; &lt;span class="counter"&gt;42&lt;/span&gt;
+&lt;a href="#"&gt;
+ Inbox
+ &lt;span class="counter"&gt;42&lt;/span&gt;
+&lt;/a&gt;
</pre>
+ <h4>Self collapsing</h4>
+ <p>When there are no new or unread items, counters will simply collapse (via CSS's <code>:empty</code> selector) provided no content exists within.</p>
+
+ <h4>Adapts to active nav states</h4>
<p>Built-in styles are included for placing counters in active states in pill and list navigations.</p>
<div class="bs-docs-example">
<ul class="nav nav-pills">
@@ -1296,9 +1302,6 @@
&lt;/ul&gt;
</pre>
- <h3>Easily collapsible</h3>
- <p>For easy implementation, counters will simply collapse (via CSS's <code>:empty</code> selector) when no content exists within.</p>
-
</section>