Skip to content

Commit

Permalink
Add Cargo documentation dropdown to the top nav bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
birkenfeld committed Feb 26, 2016
1 parent 3f2a813 commit 3b9388c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/styles/app.scss
Expand Up @@ -98,6 +98,12 @@ body {

&.open { display: block; }
}
#doc-links {
display: none;
left: auto;

&.open { display: block; }
}
@media only screen and (max-width: 820px) {
.menu { display: block; }
.nav { display: none; }
Expand Down
19 changes: 19 additions & 0 deletions app/templates/application.hbs
Expand Up @@ -25,6 +25,25 @@
Browse All Crates
{{/link-to}}
<span class="sep">|</span>
{{#rl-dropdown-container class="dropdown-container"}}
{{#rl-dropdown-toggle class="dropdown"}}
Documentation
<span class='arrow'></span>
{{/rl-dropdown-toggle}}

{{#rl-dropdown tagName="ul" id="doc-links" class="dropdown" closeOnChildClick="a:link"}}
<li><a href='http://doc.crates.io/index.html'>Getting Started</a></li>
<li><a href='http://doc.crates.io/guide.html'>Guide</a></li>
<li><a href='http://doc.crates.io/crates-io.html'>Using crates.io</a></li>
<li><a href='http://doc.crates.io/faq.html'>FAQ</a></li>
<li><a href='http://doc.crates.io/manifest.html'>Manifest Format</a></li>
<li><a href='http://doc.crates.io/build-script.html'>Build Scripts</a></li>
<li><a href='http://doc.crates.io/config.html'>Configuration</a></li>
<li><a href='http://doc.crates.io/pkgid-spec.html'>Package ID specs</a></li>
<li><a href='http://doc.crates.io/environment-variables.html'>Environment Variables</a></li>
{{/rl-dropdown}}
{{/rl-dropdown-container}}
<span class="sep">|</span>
{{#if session.currentUser}}
{{#rl-dropdown-container class="dropdown-container"}}
{{#rl-dropdown-toggle class="dropdown"}}
Expand Down

0 comments on commit 3b9388c

Please sign in to comment.