mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: fix styles of the expandable TOC
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 file changed
+12
-24
+12
-24
@@ -570,40 +570,28 @@ hr {
|
||||
}
|
||||
|
||||
.toc ul {
|
||||
margin: 0
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.toc li a::before {
|
||||
content: "■";
|
||||
color: var(--color-text-primary);
|
||||
padding-right: 1em;
|
||||
font-size: 0.9em;
|
||||
.toc>ul:first-child {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
.toc li {
|
||||
display: list-item;
|
||||
list-style: square;
|
||||
}
|
||||
.toc li a {
|
||||
display: inline;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.toc li a:hover::before {
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.toc ul ul a {
|
||||
.toc ul {
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
.toc ul ul ul a {
|
||||
padding-left: 2rem;
|
||||
}
|
||||
|
||||
.toc ul ul ul ul a {
|
||||
padding-left: 3rem;
|
||||
}
|
||||
|
||||
.toc ul ul ul ul ul a {
|
||||
padding-left: 4rem;
|
||||
}
|
||||
|
||||
.toc ul ul ul ul ul ul a {
|
||||
padding-left: 5rem;
|
||||
}
|
||||
|
||||
#toc .stability_0::after,
|
||||
.deprecated-inline::after {
|
||||
background-color: var(--red2);
|
||||
|
||||
Reference in new issue
Block a user