From e2157d09df25e7b3bc9a946aedbae63fb0cea925 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 12 Jan 2022 18:43:45 +0100 Subject: [PATCH] Add a background and some padding to inline-code This allows it to be distinguished not just based on the font. Not adding a border because that's a bit much. --- doc_src/python_docs_theme/static/pydoctheme.css | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/doc_src/python_docs_theme/static/pydoctheme.css b/doc_src/python_docs_theme/static/pydoctheme.css index f90b9b8fc..d093628b8 100644 --- a/doc_src/python_docs_theme/static/pydoctheme.css +++ b/doc_src/python_docs_theme/static/pydoctheme.css @@ -222,10 +222,17 @@ div.body a:hover { color: #00B0E4; } -tr, code, pre { +tr, pre { background-color: inherit; } +code { + /* Make inline-code better visible */ + background-color: rgba(0,0,0, .08); + padding-left: 5px; + padding-right: 5px; +} + tt, code, pre, dl > dt span ~ em, #synopsis p, #synopsis code { /* Pick a monospace font. ui-monospace is the monospace version of system-ui - the system's monospace font. @@ -510,4 +517,8 @@ div.body .internal.reference:link { th, dl.field-list > dt { background-color: #121; } + + code { + background-color: rgba(255, 255, 255, .08); + } }