Skip to content

Commit cb66e80

Browse files
committed
doc: fix styles of the expandable TOC
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>
1 parent a4ea425 commit cb66e80

File tree

1 file changed

+12
-21
lines changed

1 file changed

+12
-21
lines changed

src/generators/legacy-html/assets/style.css

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -601,35 +601,26 @@ hr {
601601
margin: 0;
602602
}
603603

604-
.toc li a::before {
605-
content: '■';
606-
color: var(--color-text-primary);
607-
padding-right: 1em;
608-
font-size: 0.9em;
609-
}
610-
611-
.toc li a:hover::before {
612-
color: var(--white);
613-
}
614-
615-
.toc ul ul a {
616-
padding-left: 1rem;
604+
.toc > ul:first-child {
605+
margin-left: 1rem;
617606
}
618607

619-
.toc ul ul ul a {
620-
padding-left: 2rem;
608+
.toc li {
609+
display: list-item;
610+
list-style: square;
621611
}
622612

623-
.toc ul ul ul ul a {
624-
padding-left: 3rem;
613+
.toc li a {
614+
display: inline;
615+
padding-left: 0;
625616
}
626617

627-
.toc ul ul ul ul ul a {
628-
padding-left: 4rem;
618+
.toc li a:hover::before {
619+
color: var(--white);
629620
}
630621

631-
.toc ul ul ul ul ul ul a {
632-
padding-left: 5rem;
622+
.toc ul {
623+
padding-left: 1rem;
633624
}
634625

635626
#toc .stability_0::after,

0 commit comments

Comments
 (0)