aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorTJ <[email protected]>2014-12-04 14:26:11 -0500
committerChris Rebert <[email protected]>2015-02-25 22:53:21 -0800
commit10c8dad84847314da26f559860e8cba26c389dbb (patch)
treecaa121156f2378e72e9bf37e38306502bed18359 /docs/examples
parent033dbfd06c9c5bb8dccdb96ec201a30fd14b178a (diff)
downloadbootstrap-10c8dad84847314da26f559860e8cba26c389dbb.tar.xz
bootstrap-10c8dad84847314da26f559860e8cba26c389dbb.zip
Prevent collapsed navbar in Non-responsive Example
Closes #15291 by merging it.
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/non-responsive/index.html12
1 files changed, 4 insertions, 8 deletions
diff --git a/docs/examples/non-responsive/index.html b/docs/examples/non-responsive/index.html
index 41e5ca363..7778e84b9 100644
--- a/docs/examples/non-responsive/index.html
+++ b/docs/examples/non-responsive/index.html
@@ -36,15 +36,11 @@
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
+ <!-- The mobile navbar-toggle button can be safely removed since you do not need it in a non-responsive implementation -->
<a class="navbar-brand" href="#">Project name</a>
</div>
- <div id="navbar" class="navbar-collapse collapse">
+ <!-- Note that the .navbar-collapse and .collapse classes have been removed from the #navbar -->
+ <div id="navbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
@@ -85,7 +81,7 @@
</div>
<h3>What changes</h3>
- <p>Note the lack of the <code>&lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;</code>, which disables the zooming aspect of sites in mobile devices. In addition, we reset our container's width and are basically good to go.</p>
+ <p>Note the lack of the <code>&lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;</code>, which disables the zooming aspect of sites in mobile devices. In addition, we reset our container's width and changed the navbar to prevent collapsing, and are basically good to go.</p>
<h3>Regarding navbars</h3>
<p>As a heads up, the navbar component is rather tricky here in that the styles for displaying it are rather specific and detailed. Overrides to ensure desktop styles display are not as performant or sleek as one would like. Just be aware there may be potential gotchas as you build on top of this example when using the navbar.</p>