mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-24 03:40:10 +00:00
Address #14541 by tweaking badge docs
* move unrelated .btn-primary example out of the pills subsection * remove excessive .nav-stacked example
This commit is contained in:
parent
5603311acd
commit
bb8ca6b786
@ -5,9 +5,17 @@
|
|||||||
|
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<a href="#">Inbox <span class="badge">42</span></a>
|
<a href="#">Inbox <span class="badge">42</span></a>
|
||||||
|
<br><br>
|
||||||
|
<button class="btn btn-primary" type="button">
|
||||||
|
Messages <span class="badge">4</span>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<a href="#">Inbox <span class="badge">42</span></a>
|
<a href="#">Inbox <span class="badge">42</span></a>
|
||||||
|
|
||||||
|
<button class="btn btn-primary" type="button">
|
||||||
|
Messages <span class="badge">4</span>
|
||||||
|
</button>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<h4>Self collapsing</h4>
|
<h4>Self collapsing</h4>
|
||||||
@ -26,36 +34,12 @@
|
|||||||
<li role="presentation"><a href="#">Profile</a></li>
|
<li role="presentation"><a href="#">Profile</a></li>
|
||||||
<li role="presentation"><a href="#">Messages <span class="badge">3</span></a></li>
|
<li role="presentation"><a href="#">Messages <span class="badge">3</span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
|
||||||
<ul class="nav nav-pills nav-stacked" role="tablist" style="max-width: 260px;">
|
|
||||||
<li role="presentation" class="active">
|
|
||||||
<a href="#">
|
|
||||||
<span class="badge pull-right">42</span>
|
|
||||||
Home
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li role="presentation"><a href="#">Profile</a></li>
|
|
||||||
<li role="presentation">
|
|
||||||
<a href="#">
|
|
||||||
<span class="badge pull-right">3</span>
|
|
||||||
Messages
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<br>
|
|
||||||
<button class="btn btn-primary" type="button">
|
|
||||||
Messages <span class="badge">4</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
<ul class="nav nav-pills nav-stacked" role="tablist">
|
<ul class="nav nav-pills" role="tablist">
|
||||||
<li role="presentation" class="active">
|
<li role="presentation" class="active"><a href="#">Home <span class="badge">42</span></a></li>
|
||||||
<a href="#">
|
<li role="presentation"><a href="#">Profile</a></li>
|
||||||
<span class="badge pull-right">42</span>
|
<li role="presentation"><a href="#">Messages <span class="badge">3</span></a></li>
|
||||||
Home
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
...
|
|
||||||
</ul>
|
</ul>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user