Skip to content

Commit

Permalink
doc: fix styles of the expandable TOC
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#56755
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Claudio Wunder <cwunder@gnome.org>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
aduh95 committed Jan 27, 2025
1 parent a4ea425 commit cb66e80
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions src/generators/legacy-html/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -601,35 +601,26 @@ hr {
margin: 0;
}

.toc li a::before {
content: '■';
color: var(--color-text-primary);
padding-right: 1em;
font-size: 0.9em;
}

.toc li a:hover::before {
color: var(--white);
}

.toc ul ul a {
padding-left: 1rem;
.toc > ul:first-child {
margin-left: 1rem;
}

.toc ul ul ul a {
padding-left: 2rem;
.toc li {
display: list-item;
list-style: square;
}

.toc ul ul ul ul a {
padding-left: 3rem;
.toc li a {
display: inline;
padding-left: 0;
}

.toc ul ul ul ul ul a {
padding-left: 4rem;
.toc li a:hover::before {
color: var(--white);
}

.toc ul ul ul ul ul ul a {
padding-left: 5rem;
.toc ul {
padding-left: 1rem;
}

#toc .stability_0::after,
Expand Down

0 comments on commit cb66e80

Please # to comment.