From 1470bfd05f163661b6cc14828af3f7ed72c02eaf Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sun, 25 Dec 2016 20:51:19 +0800 Subject: CHG: Update Navbar example and docs --- index.html | 71 ++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 34 insertions(+), 37 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index 2930182..4b2101d 100644 --- a/index.html +++ b/index.html @@ -20,8 +20,18 @@ padding: 1rem .5rem; border-radius: .3rem; } - .navbar.bg-grey { - padding: 1rem; + .navbar-brand { + font-size: 2rem; + font-weight: bold; + padding-right: 2rem; + text-decoration: none; + vertical-align: middle; + } + .navbar-brand .icon { + font-size: 1.3333em; + line-height: .8em; + margin-right: .2rem; + vertical-align: -20%; } .grid-hero { margin-top: 10rem; @@ -1157,58 +1167,45 @@

Navbar is a layout container that appears in the header of apps and websites.

-
-
- -
-
-

A navbar component can include logo brand, nav links and buttons, search box or any combination of those elements. By default, there is no grey background.

+

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

 <header class="navbar">
     <section class="navbar-section">
-        <a href="#" class="btn btn-link btn-lg">
-            <i class="icon icon-people"></i>
+        <a href="#" class="navbar-brand">
+            <i class="icon icon-pages"></i> Spectre.css
         </a>
-        <a href="#" class="navbar-brand">Spectre.css</a>
+        <a href="#" class="btn btn-link">features</a>
+        <a href="#" class="btn btn-link">documents</a>
     </section>
     <section class="navbar-section">
-        <input type="text" class="form-input input-inline" placeholder="search">documents</a>
-        <a href="#" class="btn btn-link">documents</a>
-        <a href="#" class="btn btn-link">login</a>
-        <a href="#" class="btn btn-primary">signup</a>
+        <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>
 
-- cgit v1.3.1-26-gb76a