Skip to content

Commit

Permalink
Fix disappearing top navbar on homepage
Browse files Browse the repository at this point in the history
- Change the calculation of the affix offset for the navbar on the home
  page to ensure the navbar never leaves the viewport. This change also
  takes into account the change of how the sidebars' offsets are used
  • Loading branch information
allejo committed Apr 19, 2017
1 parent ed15727 commit 8d00411
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _includes/global-header.html
Expand Up @@ -69,7 +69,8 @@ <h1>{{ site.name }}</h1>
</a>
</div>
<!-- nav-secondary -->
<nav class="nav-secondary-tabs" data-spy="affix" data-offset-top="490">
<!-- data-offset-top should calculated as follows: (height of <header> - header of <nav>) -->
<nav class="nav-secondary-tabs" data-spy="affix" data-offset-top="385">
<div class="container-fluid-fluid">
<div class="row">
<div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
Expand Down

0 comments on commit 8d00411

Please sign in to comment.