From c964b0fce81e9d397534d904e03f0060016238d7 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 9 Mar 2021 20:04:40 +0100 Subject: Keep sliding menu above news summaries --- stylesheets/commun.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stylesheets/commun.css b/stylesheets/commun.css index 0a88fab..22fb053 100644 --- a/stylesheets/commun.css +++ b/stylesheets/commun.css @@ -270,13 +270,15 @@ footer.legal { header.slidingmenu { position: relative; + /* Bump this whenever the z-index arms race in
escalates. */ + --slidingmenu-z-index: 2; } header.slidingmenu > input { position: relative; width: 100%; height: 100%; margin: 0; - z-index: 3; + z-index: calc(var(--slidingmenu-z-index) + 1); opacity: 0; cursor: pointer; } @@ -311,7 +313,7 @@ footer.legal { transform-origin: left; transform: translate(-100vw); transition: transform 0.5s; - z-index: 1; + z-index: var(--slidingmenu-z-index); display: grid; grid-template-columns: 3rem 1fr 3.6rem; -- cgit v1.2.3