From d67838b2b887535ffc2a237f33e2f638061b3220 Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Mon, 26 Oct 2026 12:43:54 -0500 Subject: [PATCH] Indent the inline table of contents like other body lists The right-rail TOC rules zero out .table-of-contents padding, and renders with that same class, so its bullets hung flush with the content edge. Co-Authored-By: Claude Opus 5.5 --- src/css/components.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/css/components.css b/src/css/components.css index cd183be6..b482d3b4 100644 --- a/src/css/components.css +++ b/src/css/components.css @@ -765,6 +765,11 @@ section.row > article[class*='docCardListItem'] { padding-left: 1.5rem; } +/* reuses .table-of-contents but renders as a bulleted list in body copy, so it keeps the list indent. */ +[class*='tableOfContentsInline'] ul { + padding-left: var(--ifm-list-left-padding); +} + .pagination-nav__link { position: relative; border: 1px solid var(--border-color);