diff options
| author | Mark Otto <[email protected]> | 2015-09-01 20:29:07 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2015-09-01 20:29:07 -0700 |
| commit | b17f5cadd5563c5ae530b64f221dcdc6e9f7c8b4 (patch) | |
| tree | 2cbfa2f27232fdaeac73c7c982fbfb68f67299f6 /docs/examples | |
| parent | b5c93eafb83ee3a28712e4cccf01be8ef4b73c05 (diff) | |
| parent | 1eea52b263f001f8497afb2744d422d1beaaef6d (diff) | |
| download | bootstrap-b17f5cadd5563c5ae530b64f221dcdc6e9f7c8b4.tar.xz bootstrap-b17f5cadd5563c5ae530b64f221dcdc6e9f7c8b4.zip | |
Merge pull request #17353 from dmbaughman/v4-navbar-example
v4 - Updated default navbar example to use responsive navbar
Diffstat (limited to 'docs/examples')
| -rw-r--r-- | docs/examples/navbar/index.html | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/docs/examples/navbar/index.html b/docs/examples/navbar/index.html index 2871ef836..51328c795 100644 --- a/docs/examples/navbar/index.html +++ b/docs/examples/navbar/index.html @@ -24,23 +24,38 @@ <body> <div class="container"> - - <div class="collapse" id="navbar-header"> - <div class="inverse p-a"> - <h3>Collapsed content</h3> - <p>Toggleable via the navbar brand.</p> - </div> - </div> - <div class="navbar navbar-default navbar-static-top"> - <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-header"> + <nav class="navbar navbar-light bg-faded"> + <button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#navbar-header" aria-controls="navbar-header"> ☰ </button> - </div> + <div class="collapse navbar-toggleable-xs" id="navbar-header"> + <a class="navbar-brand" href="#">Navbar</a> + <ul class="nav navbar-nav"> + <li class="nav-item active"> + <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a> + </li> + <li class="nav-item"> + <a class="nav-link" href="#">Features</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="#">Pricing</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="#">About</a> + </li> + </ul> + <form class="form-inline navbar-form pull-right"> + <input class="form-control" type="text" placeholder="Search"> + <button class="btn btn-success-outline" type="submit">Search</button> + </form> + </div> + </nav> <!-- /navbar --> <!-- Main component for a primary marketing message or call to action --> <div class="jumbotron"> <h1>Navbar example</h1> - <p>This example is a quick exercise to illustrate how the default navbar works. It's placed within a <code>.container</code> to limit its width and will scroll with the rest of the page's content.</p> + <p>This example is a quick exercise to illustrate how the default responsive navbar works. It's placed within a <code>.container</code> to limit its width and will scroll with the rest of the page's content.</p> + <p>At the smallest breakpoint, the collapse plugin is used to hide the links and show a menu button to toggle the collapsed content.</p> <p> <a class="btn btn-lg btn-primary" href="../../components/navbar" role="button">View navbar docs »</a> </p> |
