Skip to content

Commit

Permalink
Fix navigation.tabs for non-leaf pages
Browse files Browse the repository at this point in the history
Previously, when using navigation.tabs on non-leaf pages, the integrated
TOC used for "layered" (mobile) navigation would incorrectly display as
well. The fix in 87d87f9 was was not
sufficient due to a CSS precedence issue, which is now corrected by
using `!important`.
  • Loading branch information
jbms committed Jan 30, 2025
1 parent d32b12a commit 8c41c40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/assets/stylesheets/main/layout/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
// sphinx-immaterial: hide nested nav items of current page, since
// they are redundant with integrated toc.
&__current-nested {
display: none;
display: none !important;
}

// Show link to table of contents
Expand Down Expand Up @@ -514,7 +514,7 @@

// sphinx-immaterial: hide integreated toc, since it is redundant with any nested items.
&__current-toc {
display: none;
display: none !important;
}

// Navigation title
Expand Down

0 comments on commit 8c41c40

Please sign in to comment.