mirror of https://github.com/twbs/bootstrap.git
				
				
				
			Updated default navbar example to use responsive navbar
This commit is contained in:
		
							parent
							
								
									7ff9b1979c
								
							
						
					
					
						commit
						1eea52b263
					
				| 
						 | 
					@ -24,23 +24,38 @@
 | 
				
			||||||
  <body>
 | 
					  <body>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <div class="container">
 | 
					    <div class="container">
 | 
				
			||||||
 | 
					      <nav class="navbar navbar-light bg-faded">
 | 
				
			||||||
      <div class="collapse" id="navbar-header">
 | 
					        <button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#navbar-header" aria-controls="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">
 | 
					 | 
				
			||||||
          ☰
 | 
					          ☰
 | 
				
			||||||
        </button>
 | 
					        </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 -->
 | 
					      <!-- Main component for a primary marketing message or call to action -->
 | 
				
			||||||
      <div class="jumbotron">
 | 
					      <div class="jumbotron">
 | 
				
			||||||
        <h1>Navbar example</h1>
 | 
					        <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>
 | 
					        <p>
 | 
				
			||||||
          <a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">View navbar docs »</a>
 | 
					          <a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">View navbar docs »</a>
 | 
				
			||||||
        </p>
 | 
					        </p>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue