summaryrefslogtreecommitdiffstats
path: root/site/content/docs/5.2/examples/navbar-static
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-24 12:33:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-24 12:33:51 +0000
commit3ea39841c8049525e31e9f4d6300f0c60cdb42de (patch)
tree855de60a8872eafb5911acd303aedcdbfe713a73 /site/content/docs/5.2/examples/navbar-static
parentInital commit. (diff)
downloadbootstrap-html-3ea39841c8049525e31e9f4d6300f0c60cdb42de.tar.xz
bootstrap-html-3ea39841c8049525e31e9f4d6300f0c60cdb42de.zip
Adding upstream version 5.2.3+dfsg.upstream/5.2.3+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'site/content/docs/5.2/examples/navbar-static')
-rw-r--r--site/content/docs/5.2/examples/navbar-static/index.html40
-rw-r--r--site/content/docs/5.2/examples/navbar-static/navbar-top.css4
2 files changed, 44 insertions, 0 deletions
diff --git a/site/content/docs/5.2/examples/navbar-static/index.html b/site/content/docs/5.2/examples/navbar-static/index.html
new file mode 100644
index 0000000..b6c26c9
--- /dev/null
+++ b/site/content/docs/5.2/examples/navbar-static/index.html
@@ -0,0 +1,40 @@
+---
+layout: examples
+title: Top navbar example
+extra_css:
+ - "navbar-top.css"
+---
+
+<nav class="navbar navbar-expand-md navbar-dark bg-dark mb-4">
+ <div class="container-fluid">
+ <a class="navbar-brand" href="#">Top navbar</a>
+ <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
+ <span class="navbar-toggler-icon"></span>
+ </button>
+ <div class="collapse navbar-collapse" id="navbarCollapse">
+ <ul class="navbar-nav me-auto mb-2 mb-md-0">
+ <li class="nav-item">
+ <a class="nav-link active" aria-current="page" href="#">Home</a>
+ </li>
+ <li class="nav-item">
+ <a class="nav-link" href="#">Link</a>
+ </li>
+ <li class="nav-item">
+ <a class="nav-link disabled">Disabled</a>
+ </li>
+ </ul>
+ <form class="d-flex" role="search">
+ <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
+ <button class="btn btn-outline-success" type="submit">Search</button>
+ </form>
+ </div>
+ </div>
+</nav>
+
+<main class="container">
+ <div class="bg-light p-5 rounded">
+ <h1>Navbar example</h1>
+ <p class="lead">This example is a quick exercise to illustrate how the top-aligned navbar works. As you scroll, this navbar remains in its original position and moves with the rest of the page.</p>
+ <a class="btn btn-lg btn-primary" href="{{< docsref "/components/navbar" >}}" role="button">View navbar docs &raquo;</a>
+ </div>
+</main>
diff --git a/site/content/docs/5.2/examples/navbar-static/navbar-top.css b/site/content/docs/5.2/examples/navbar-static/navbar-top.css
new file mode 100644
index 0000000..25bbdde
--- /dev/null
+++ b/site/content/docs/5.2/examples/navbar-static/navbar-top.css
@@ -0,0 +1,4 @@
+/* Show it's not fixed to the top */
+body {
+ min-height: 75rem;
+}