Follow-up grunt for #472 (#476)

* grunt run

* regenerate theme css
This commit is contained in:
Peter McDonnell 2017-10-15 04:24:40 +01:00 committed by Aaron Carlisle
parent ee4d440375
commit 9d704f287a
3 changed files with 11 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -109,13 +109,15 @@ function ThemeNav () {
// Try again with the closest section entry. // Try again with the closest section entry.
link = $('.wy-menu-vertical') link = $('.wy-menu-vertical')
.find('[href="#' + closest_section.attr("id") + '"]'); .find('[href="#' + closest_section.attr("id") + '"]');
} }
$('.wy-menu-vertical li.toctree-l1 li.current') // If we found a matching link then reset current and re-apply
.removeClass('current'); // otherwise retain the existing match
link.closest('li.toctree-l2').addClass('current'); if (link.length > 0) {
link.closest('li.toctree-l3').addClass('current'); $('.wy-menu-vertical li.toctree-l1 li.current').removeClass('current');
link.closest('li.toctree-l4').addClass('current'); link.closest('li.toctree-l2').addClass('current');
link.closest('li.toctree-l3').addClass('current');
link.closest('li.toctree-l4').addClass('current');
}
} }
catch (err) { catch (err) {
console.log("Error expanding nav for anchor", err); console.log("Error expanding nav for anchor", err);