From 6922a16732eab173c1fec74dd8e903f8ad0f4222 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Mon, 8 Jan 2024 03:12:30 +0000 Subject: [PATCH] Improve sidebar styles See https://github.com/sphinx-doc/alabaster/pull/114 --- alabaster/static/alabaster.css_t | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/alabaster/static/alabaster.css_t b/alabaster/static/alabaster.css_t index 789c7c3..a7737cf 100644 --- a/alabaster/static/alabaster.css_t +++ b/alabaster/static/alabaster.css_t @@ -124,6 +124,11 @@ div.relations { } {% endif %} +div.sphinxsidebar { + max-height: 100%; + overflow-y: auto; +} + div.sphinxsidebar a { color: {{ theme_sidebar_link }}; text-decoration: none; @@ -210,6 +215,14 @@ div.sphinxsidebar input { font-size: 1em; } +div.sphinxsidebar #searchbox input[type="text"] { + width: 160px; +} + +div.sphinxsidebar .search > div { + display: table-cell; +} + div.sphinxsidebar hr { border: none; height: 1px;