From 35e94b9e2b7820f1ce1e6f3c625cb313cfab008b Mon Sep 17 00:00:00 2001 From: Tomas Roun Date: Tue, 8 Apr 2025 22:57:02 +0200 Subject: [PATCH 1/2] Use consistent line-height for light & dark theme --- python_docs_theme/static/pydoctheme.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index da47d3e..6f48cee 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -328,6 +328,10 @@ tt, code, pre { font-size: 96.5%; } +pre { + line-height: 125%; +} + div.body tt, div.body code { border-radius: 3px; From 1f05376dfd7d4176d5b56dd76f575b801b6edf52 Mon Sep 17 00:00:00 2001 From: Tomas Roun Date: Thu, 10 Apr 2025 21:12:25 +0200 Subject: [PATCH 2/2] Use a more specific selector --- python_docs_theme/static/pydoctheme.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index 6f48cee..40d9cb0 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -328,8 +328,8 @@ tt, code, pre { font-size: 96.5%; } -pre { - line-height: 125%; +div.body pre { + line-height: 120%; } div.body tt,