diff options
| author | David Baughman <[email protected]> | 2015-08-26 13:03:47 -0700 |
|---|---|---|
| committer | David Baughman <[email protected]> | 2015-08-26 13:03:47 -0700 |
| commit | 1eea52b263f001f8497afb2744d422d1beaaef6d (patch) | |
| tree | 40788427444be12aebabd0a80427437337336dcb /docs | |
| parent | 7ff9b1979c56f8da5eab77c755778e8f9c323526 (diff) | |
| download | bootstrap-1eea52b263f001f8497afb2744d422d1beaaef6d.tar.xz bootstrap-1eea52b263f001f8497afb2744d422d1beaaef6d.zip | |
Updated default navbar example to use responsive navbar
Diffstat (limited to 'docs')
| -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 a7ddcd808..78461da28 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> |
