From 3cc26cb85da9be4ceda723473498aea21669270e Mon Sep 17 00:00:00 2001 From: Jean-Marie 'Histausse' Mineau Date: Fri, 24 Jul 2026 18:16:39 +0200 Subject: [PATCH] tweak z-index of images --- lib/figures.typ | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/figures.typ b/lib/figures.typ index a0f1651..8378caa 100644 --- a/lib/figures.typ +++ b/lib/figures.typ @@ -23,6 +23,7 @@ right: 0; left: 0; position: fixed; + z-index: 2; background: var(--color-bg-overlay); @@ -31,6 +32,7 @@ flex-direction: column; img { + position: fixed; width: 95dvw; height: 95dvh; max-width: 95dvw; @@ -54,6 +56,7 @@ image-alt-group { position: relative; + z-index: 1; display: inline-block; .alt-text { @@ -65,7 +68,7 @@ top: 0; border-radius: 6px; position: absolute; - z-index: 1; + z-index: 3; transition: opacity 250ms ease-in, visibility 0ms ease-in 250ms;