From 6b7fe4985845f9800d1876f594c08ba4f867855c Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 12 Nov 2021 18:47:56 +0100 Subject: [PATCH] docs: Restrict underlining links to the body Adding the underline in the list of sections makes them bleed together, making it hard to discern where one ends and the other begins. In the body of the text we don't have that issue - multiple links are rarely next to each other. Fixes #8439 --- doc_src/python_docs_theme/static/pydoctheme.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc_src/python_docs_theme/static/pydoctheme.css b/doc_src/python_docs_theme/static/pydoctheme.css index d56e22d18..97fea3f04 100644 --- a/doc_src/python_docs_theme/static/pydoctheme.css +++ b/doc_src/python_docs_theme/static/pydoctheme.css @@ -374,7 +374,8 @@ kbd { padding: 0.1em 0.3em; } -.internal.reference:link { +div.body .internal.reference:link { + /* Underline links in the body of the text */ text-decoration: underline; } .std-envvar::before {