Skip to content

Commit

Permalink
refactor(shared-docs): Hide TOC if there is only 1 item.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMeche committed Feb 22, 2024
1 parent b6876b1 commit fa6059d
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -14,6 +14,11 @@
margin-bottom: 2rem;
}

& :has(ul li:only-child) {
// Hide the entire TOC is there's only one item
display: none;
}

@media only screen and (max-width: 1430px) {
position: relative;
right: 0;
Expand Down

0 comments on commit fa6059d

Please sign in to comment.