From 803f046285e14c1f2be786b5d4a23574f8a47f75 Mon Sep 17 00:00:00 2001 From: "Jakob L. Kreuze" Date: Sat, 14 Feb 2026 10:36:06 -0500 Subject: Stylize table of contents --- static/css/style.css | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'static/css') diff --git a/static/css/style.css b/static/css/style.css index b4d8d4f..283a633 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -130,6 +130,31 @@ a:hover { margin: 0 } +.nav-list ul { + list-style-type: none; + padding-left: 12px; + margin: 4px 0 +} + +.nav-list ul li { + position: relative; + padding-left: 10px; + margin-bottom: 2px +} + +.nav-list ul li::before { + content: "↳"; + position: absolute; + left: -5px; + color: #999; + font-size: 8px +} + +.nav-list ul li a { + font-weight: 400; + border-bottom: 1px dotted #ccc +} + .nav-list li { margin-bottom: 4px } @@ -578,6 +603,10 @@ a[href*="wikipedia.org"]::after { line-height: 1.6 } +.toc-module div.module-title-has-icon { + background-image: url('/static/image/icons-shadowless/book-open.png'); +} + @media (max-width:740px) { .toc-module { max-width: 100% -- cgit v1.3