From 8116c5d0d6f308347db01c6204ba2623095189f4 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Mon, 11 Aug 2025 19:18:24 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20am=C3=A9liore=20la=20lisibilit=C3=A9=20?= =?UTF-8?q?du=20contenu=20avec=20un=20overlay=20semi-transparent=20sur=20l?= =?UTF-8?q?e=20fond=20du=20layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/Layout.astro | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index b2d95ce..6f34949 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -65,6 +65,20 @@ const { title } = Astro.props; main { padding: 1.5rem; max-width: 80ch; + position: relative; + } + + /* Overlay semi-transparent derrière le contenu pour améliorer la lisibilité */ + main::before { + content: ''; + position: absolute; + top: -2rem; + left: -2rem; + right: -2rem; + bottom: -2rem; + background: rgba(255, 255, 255, 0.85); + z-index: -1; + border-radius: 1rem; } footer{