0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-30 22:52:24 +01:00

make supported content example responsive

This commit is contained in:
Mark Otto 2016-12-21 13:17:48 -08:00 committed by Mark Otto
parent be1a316320
commit 50c76fd841

View File

@ -39,7 +39,10 @@ Here's an example of all the sub-components included in a responsive light-theme
{% example html %}
<nav class="navbar navbar-light bg-faded">
<button class="navbar-toggler navbar-toggler-right hidden-lg-up" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"></button>
<a class="navbar-brand" href="#">Navbar</a>
<div class="collapse navbar-toggleable-md" id="navbarSupportedContent">
<ul class="nav navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
@ -59,10 +62,11 @@ Here's an example of all the sub-components included in a responsive light-theme
</div>
</li>
</ul>
<form class="form-inline">
<form class="form-inline mt-2 mt-md-0">
<input class="form-control" type="text" placeholder="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
<button class="btn btn-outline-success my-2 my-md-0" type="submit">Search</button>
</form>
</div>
</nav>
{% endexample %}