Skip to content

Commit c7d9e51

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 9ebf29a commit c7d9e51

File tree

1 file changed

+11
-23
lines changed

1 file changed

+11
-23
lines changed

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

+11-23
Original file line numberDiff line numberDiff line change
@@ -599,38 +599,26 @@ hr {
599599
.toc ul {
600600
margin: 0;
601601
}
602-
603-
.toc li a::before {
604-
content: '■';
605-
color: var(--color-text-primary);
606-
padding-right: 1em;
607-
font-size: 0.9em;
602+
.toc > ul:first-child {
603+
margin-left: 1rem;
604+
}
605+
.toc li {
606+
display: list-item;
607+
list-style: square;
608+
}
609+
.toc li a {
610+
display: inline;
611+
padding-left: 0;
608612
}
609613

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

614-
.toc ul ul a {
618+
.toc ul {
615619
padding-left: 1rem;
616620
}
617621

618-
.toc ul ul ul a {
619-
padding-left: 2rem;
620-
}
621-
622-
.toc ul ul ul ul a {
623-
padding-left: 3rem;
624-
}
625-
626-
.toc ul ul ul ul ul a {
627-
padding-left: 4rem;
628-
}
629-
630-
.toc ul ul ul ul ul ul a {
631-
padding-left: 5rem;
632-
}
633-
634622
#toc .stability_0::after,
635623
.deprecated-inline::after {
636624
background-color: var(--red2);

0 commit comments

Comments
 (0)