From 43daa9b217934f2cd01d328a8e5563a64d96cdd3 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 26 Jan 2025 23:24:29 +0100 Subject: [PATCH] doc: fix styles of the expandable TOC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/56755 Reviewed-By: James M Snell Reviewed-By: Ulises Gascón Reviewed-By: Claudio Wunder Reviewed-By: Luigi Pinca --- doc/api_assets/style.css | 36 ++++++++++++------------------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 35c216bb0523fc..9f56028d09162c 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -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);