Skip to content

Commit

Permalink
Merge pull request #325 from nikolaswise/master
Browse files Browse the repository at this point in the history
document thirdnac
  • Loading branch information
paulcpederson committed Aug 18, 2015
2 parents f34dbf6 + ab56c4c commit 90c2a17
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

### Added
- `fade-in` class for fading in elements on page load
- Responsive Javascript for the third nav.

## 0.11.3

Expand Down
4 changes: 4 additions & 0 deletions docs/source/patterns/_third-nav.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
Tertiary navigation is necessary only when the information architecture of the site requires three levels of hierarchy within pages. A breadcrumb component can also be used in this pattern.

The third nav has a set of of Javascript bindings responsible for responsive behavior when the content of the third nav is greater than it's container.

Only a single third nav can be on a page.
6 changes: 4 additions & 2 deletions docs/source/patterns/sample-code/_third-nav.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<header class="third-nav">
<a href="#" class="icon-ui-left js-overflow-left nav-overflow-left"></a>
<div class="grid-container">
<nav class="column-24" role="navigation" aria-labelledby="thirdnav">
<nav class="column-24 third-nav-container js-nav-overflow" role="navigation" aria-labelledby="thirdnav">
<a class="third-nav-link is-active" href="#">Alpine</a>
<a class="third-nav-link" href="#">Coastal</a>
<a class="third-nav-link" href="#">Wetland</a>
<a class="third-nav-link" href="#">Grassland</a>
<a class="third-nav-link" href="#">Praire</a>
</nav>
</div>
</header>
<a href="#" class="icon-ui-right js-overflow-right nav-overflow-right"></a>
</header>
2 changes: 1 addition & 1 deletion lib/sass/calcite-web/patterns/_third-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
padding: 11px 6px;
top: 0;
margin: 0;
background-color: rgba(255,255,255,.8);
background-color: rgba($white, .8);
display: none;
&:before {
padding-right: 0;
Expand Down

0 comments on commit 90c2a17

Please sign in to comment.