Skip to content

Commit

Permalink
Auto-hides the navigation bar when scrolling a page
Browse files Browse the repository at this point in the history
Scrolling down hides the navigation bar to give more room
to the content. Scrolling up is interpreted as the user
wanting to go back to the top of the page, so the navigation
bar is shown again.
  • Loading branch information
ecampidoglio committed Apr 7, 2019
1 parent 20e2936 commit c1c063b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<script src="https://use.fontawesome.com/44db616403.js" async></script>
</head>
<body>
<nav class="topbar" role="navigation">
<nav class="topbar header" role="navigation">
<ul>
<li role="presentation"><a href="/about/">about</a></li>
<li role="presentation" class="hide"><a href="/offering/">offering</a></li>
Expand Down
1 change: 1 addition & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
{% include css/syntax.css %}
{% include css/footnotes.css %}
{% include css/flags.css %}
{% include css/header.css %}

0 comments on commit c1c063b

Please sign in to comment.