Skip to content

Commit

Permalink
updated topbar docs example and title style
Browse files Browse the repository at this point in the history
  • Loading branch information
zurbchris committed Mar 2, 2013
1 parent 8ac9ecf commit f5623c6
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
63 changes: 63 additions & 0 deletions docs/components/top-bar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,69 @@
<div class="large-12 columns">
<h1><%= @page_title %></h1>
<h4 class="subheader">The Foundation Top Bar gives you a great way to display a complex navigation bar on small or large screens.</h4>

<nav class="top-bar">
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<h1><a href="/">Top Bar</a></h1>
</li>
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>

<section class="top-bar-section">
<ul class="left">
<li class="divider"></li>
<li class="has-dropdown"><a href="<%= features_path %>">Item 1</a>

<ul class="dropdown">
<li><label>Level One</label></li>
<li><a href="#">Sub-item 1</a></li>
<li><a href="#">Sub-item 2</a></li>
<li class="divider"></li>
<li><a href="#">Sub-item 3</a></li>
<li class="has-dropdown"><a href="#">Sub-item 4</a>

<ul class="dropdown">
<li><label>Level Two</label></li>
<li class="has-dropdown"><a href="#">Sub-item 1</a>

<ul class="dropdown">
<li><label>Level Three</label></li>
<li class="has-dropdown"><a href="#">Sub-item 1</a>

<ul class="dropdown">
<li><label>Level Four</label></li>
<li><a href="#">Sub-item 1</a></li>
</ul>
</li>
<li><a href="#">Sub-item 2</a></li>
<li><a href="#">Sub-item 3</a></li>
<li class="divider"></li>
<li><a href="#">Sub-item 4</a></li>
</ul>
</li>
<li><a href="#">Sub-item 2</a></li>
<li><a href="#">Sub-item 3</a></li>
<li><a href="#">Sub-item 4</a>
</ul>
</li>
<li><a href="#">Sub-item 1</a></li>
</ul>
</li>
<li class="divider"></li>
</ul>
<!-- Right Nav Section -->
<ul class="right">
<li><a href="#">Item 2</a></li>
<li class="divider"></li>
</li>
</ul>
</section>
</nav>

<hr>
</div>
</div>

Expand Down
8 changes: 8 additions & 0 deletions scss/foundation/components/_top-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,14 @@ $topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")" !defa
font-weight: normal;
padding: 8px $topbar-height / 3;
}

&.title h5 { margin-bottom: 0;
a {
color: $topbar-link-color;
line-height: $topbar-height / 2;
display: block;
}
}
}

label {
Expand Down

0 comments on commit f5623c6

Please sign in to comment.