Skip to content

Commit

Permalink
Hide TOC header if TOC is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
snomos committed Sep 3, 2024
1 parent d838e59 commit a237f48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/css/giellalt-site-global.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ header {
height: calc(100% - 10em);
}

header > #toc:not(:has(:nth-child(2))) {
display: none
}

header h2.tocheader {
margin: 0;
font-size: 1em;
Expand Down

0 comments on commit a237f48

Please sign in to comment.