mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Update collapsible navbar docs
- Add .text-muted for text color control over .bg-inverse in the examples - Add a dark navbar collapse example
This commit is contained in:
parent
8b7ce089c9
commit
083271ae48
@ -245,7 +245,21 @@ Our collapse plugin allows you to use a `<button>` or `<a>` to toggle hidden con
|
||||
☰
|
||||
</button>
|
||||
<div class="collapse" id="exCollapsingNavbar">
|
||||
<div class="bg-inverse p-a-1">
|
||||
<div class="bg-inverse text-muted p-a-1">
|
||||
<h4>Collapsed content</h4>
|
||||
<span class="text-muted">Toggleable via the navbar brand.</span>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
{% endexample %}
|
||||
|
||||
{% example html %}
|
||||
<nav class="navbar navbar-dark bg-inverse">
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#exCollapsingNavbarDark" aria-controls="exCollapsingNavbarDark" aria-expanded="false" aria-label="Toggle navigation">
|
||||
☰
|
||||
</button>
|
||||
<div class="collapse" id="exCollapsingNavbarDark">
|
||||
<div class="bg-inverse text-muted p-a-1">
|
||||
<h4>Collapsed content</h4>
|
||||
<span class="text-muted">Toggleable via the navbar brand.</span>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user