From 783d683f1d068fdc86926185596c8183f61fce3d Mon Sep 17 00:00:00 2001 From: neofelis2X Date: Wed, 29 Jan 2025 02:52:03 +0100 Subject: [PATCH] Docs: add sticky header and correct z-order of elements --- docs/sphinx/_static/css/phoenix.css | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/sphinx/_static/css/phoenix.css b/docs/sphinx/_static/css/phoenix.css index 47f46fd7..da43c268 100644 --- a/docs/sphinx/_static/css/phoenix.css +++ b/docs/sphinx/_static/css/phoenix.css @@ -107,9 +107,10 @@ div.headerimage-noshow { } div.document { - background-color: rgb(230,230,230); - position: relative; - margin-left: 240px; + background-color: rgb(230,230,230); + position: relative; + margin-left: 240px; + z-index: 500; } div.sphinxsidebarwrapper { @@ -140,6 +141,7 @@ div.sphinxsidebar { left: 0; top: 30px; bottom: 0; + z-index: 600; } #searchbox { @@ -159,9 +161,9 @@ div.related { font-size: 90%; line-height: normal; height: auto; - left: 0; - right: 0; + position: sticky; top: 0; + z-index: 999; } div.related ul {