From 369ad04d03a29398391a9cb90f08c09d531afc99 Mon Sep 17 00:00:00 2001 From: Remy Wang Date: Fri, 13 Feb 2026 15:51:15 +0100 Subject: [PATCH] Add styling rule to field-list for vertical alignment --- python_docs_theme/static/pydoctheme.css | 4 ++++ python_docs_theme/static/pydoctheme_dark.css | 1 + 2 files changed, 5 insertions(+) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index 8c0ddfc..aa83dee 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -426,6 +426,10 @@ div.footer a:hover { color: #0095c4; } +dl.field-list > dt { + align-self: center; +} + /* C API return value annotations */ :root { --refcount: var(--good-color); diff --git a/python_docs_theme/static/pydoctheme_dark.css b/python_docs_theme/static/pydoctheme_dark.css index 909a296..10c2b98 100644 --- a/python_docs_theme/static/pydoctheme_dark.css +++ b/python_docs_theme/static/pydoctheme_dark.css @@ -77,6 +77,7 @@ span.highlighted { /* Below for most things in text */ dl.field-list > dt { + align-self: center; background-color: #434; }