From 01fb412a0508412f683aa58fdf766859d0733314 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 5 Apr 2017 13:43:21 +0800 Subject: Update Navbar Docs --- docs/layout.html | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) (limited to 'docs/layout.html') diff --git a/docs/layout.html b/docs/layout.html index 4709f81..c05fc1f 100644 --- a/docs/layout.html +++ b/docs/layout.html @@ -393,6 +393,23 @@

The navbar component can include logo brand, nav links and buttons, search box or any combination of those elements. Each section with the navbar-section class will be evenly distributed in the container.

+ + +
<header class="navbar">
+  <section class="navbar-section">
+    <a href="#" class="navbar-brand mr-10">Spectre.css</a>
+    <a href="#" class="btn btn-link">Docs</a>
+    <a href="https://github.com/picturepan2/spectre" class="btn btn-link">GitHub</a>
+  </section>
+  <section class="navbar-section">
+    <div class="input-group input-inline">
+      <input class="form-input" type="text" placeholder="search" />
+      <button class="btn btn-primary input-group-btn">Search</button>
+    </div>
+  </section>
+</header>
+
+
+
+

You can use navbar-center class to have a centered section.

+
<header class="navbar">
-  <section class="navbar-primary">
-    <a href="#" class="navbar-brand mr-10">Spectre.css</a>
-  </section>
   <section class="navbar-section">
     <a href="#" class="btn btn-link">Docs</a>
-    <a href="https://github.com/picturepan2/spectre" class="btn btn-link">GitHub</a>
+    <a href="#" class="btn btn-link">Examples</a>
+  </section>
+  <section class="navbar-center">
+    <!-- centered logo or brand -->
   </section>
   <section class="navbar-section">
-    <div class="input-group input-inline">
-      <input class="form-input" type="text" placeholder="search" />
-      <button class="btn btn-primary input-group-btn">Search</button>
-    </div>
+    <a href="#" class="btn btn-link">Twitter</a>
+    <a href="#" class="btn btn-link">GitHub</a>
   </section>
 </header>
 
-- cgit v1.3.1-23-gd82d