mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-30 08:39:56 +02:00
Doc: use .text-bg-{color}
for all badges
This commit is contained in:
committed by
Mark Otto
parent
dac60074dc
commit
f7426c08e7
@@ -13,12 +13,12 @@ Badges scale to match the size of the immediate parent element by using relative
|
||||
### Headings
|
||||
|
||||
{{< example >}}
|
||||
<h1>Example heading <span class="badge bg-secondary">New</span></h1>
|
||||
<h2>Example heading <span class="badge bg-secondary">New</span></h2>
|
||||
<h3>Example heading <span class="badge bg-secondary">New</span></h3>
|
||||
<h4>Example heading <span class="badge bg-secondary">New</span></h4>
|
||||
<h5>Example heading <span class="badge bg-secondary">New</span></h5>
|
||||
<h6>Example heading <span class="badge bg-secondary">New</span></h6>
|
||||
<h1>Example heading <span class="badge text-bg-secondary">New</span></h1>
|
||||
<h2>Example heading <span class="badge text-bg-secondary">New</span></h2>
|
||||
<h3>Example heading <span class="badge text-bg-secondary">New</span></h3>
|
||||
<h4>Example heading <span class="badge text-bg-secondary">New</span></h4>
|
||||
<h5>Example heading <span class="badge text-bg-secondary">New</span></h5>
|
||||
<h6>Example heading <span class="badge text-bg-secondary">New</span></h6>
|
||||
{{< /example >}}
|
||||
|
||||
### Buttons
|
||||
|
@@ -117,21 +117,21 @@ These work great with custom content as well.
|
||||
<div class="fw-bold">Subheading</div>
|
||||
Content for list item
|
||||
</div>
|
||||
<span class="badge bg-primary rounded-pill">14</span>
|
||||
<span class="badge text-bg-primary rounded-pill">14</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-start">
|
||||
<div class="ms-2 me-auto">
|
||||
<div class="fw-bold">Subheading</div>
|
||||
Content for list item
|
||||
</div>
|
||||
<span class="badge bg-primary rounded-pill">14</span>
|
||||
<span class="badge text-bg-primary rounded-pill">14</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-start">
|
||||
<div class="ms-2 me-auto">
|
||||
<div class="fw-bold">Subheading</div>
|
||||
Content for list item
|
||||
</div>
|
||||
<span class="badge bg-primary rounded-pill">14</span>
|
||||
<span class="badge text-bg-primary rounded-pill">14</span>
|
||||
</li>
|
||||
</ol>
|
||||
{{< /example >}}
|
||||
@@ -200,15 +200,15 @@ Add badges to any list group item to show unread counts, activity, and more with
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
A list item
|
||||
<span class="badge bg-primary rounded-pill">14</span>
|
||||
<span class="badge text-bg-primary rounded-pill">14</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
A second list item
|
||||
<span class="badge bg-primary rounded-pill">2</span>
|
||||
<span class="badge text-bg-primary rounded-pill">2</span>
|
||||
</li>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
A third list item
|
||||
<span class="badge bg-primary rounded-pill">1</span>
|
||||
<span class="badge text-bg-primary rounded-pill">1</span>
|
||||
</li>
|
||||
</ul>
|
||||
{{< /example >}}
|
||||
|
Reference in New Issue
Block a user