From cbaabc25598adc890da8fe307dc0936262d70633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Tue, 10 Sep 2024 11:08:13 +0200 Subject: [PATCH] doc: css: fix mobile layout and increase browser compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit added a missing dvh causing footer to be footer to be displayed outside of the viewport on mobile when browsing "Desktop site" version, and also added fallback "vh" rules for slightly better browser compatibility. Signed-off-by: Benjamin Cabé --- doc/_static/css/custom.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css index 5b0bbae4b2d..d6b08a03740 100644 --- a/doc/_static/css/custom.css +++ b/doc/_static/css/custom.css @@ -172,6 +172,7 @@ a.icon-home:visited { .wy-nav-content { background-color: var(--content-background-color); min-height: 100vh; + min-height: 100dvh; display: flex; } @@ -760,6 +761,7 @@ kbd, .kbd, max-height: initial; } .wy-nav-content { + min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); } }