From c4e3c97de4a00d1d9308fe20ca01206a58012a4d Mon Sep 17 00:00:00 2001 From: Tomas Roun Date: Sun, 2 Feb 2025 11:28:13 +0100 Subject: [PATCH] Align the collapse icon --- python_docs_theme/static/pydoctheme.css | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index 0f6f8d3..bf92e92 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -191,6 +191,9 @@ div.sphinxsidebar input[type='text'] { } #sidebarbutton { + display: flex; + justify-content: center; + align-items: center; /* Sphinx 4.x and earlier compat */ height: 100%; background-color: #CCCCCC; @@ -200,19 +203,12 @@ div.sphinxsidebar input[type='text'] { cursor: pointer; padding-top: 1px; float: right; - display: table; /* after Sphinx 4.x and earlier is dropped, only the below is needed */ width: 12px; border-radius: 0 5px 5px 0; border-left: none; } -#sidebarbutton span { - /* Sphinx 4.x and earlier compat */ - display: table-cell; - vertical-align: middle; -} - #sidebarbutton:hover { background-color: #AAAAAA; }