From 60823a6c03db7a65289363e6323914106e2be48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Fri, 11 Apr 2025 07:27:14 +0400 Subject: [PATCH] add current page highlight on footer --- css/styles.css | 29 +++++++++++++++++++ includes/footer.php | 68 ++++++++++++++++++++++++++------------------- 2 files changed, 68 insertions(+), 29 deletions(-) diff --git a/css/styles.css b/css/styles.css index 06c6e6a..73b64b7 100644 --- a/css/styles.css +++ b/css/styles.css @@ -1103,6 +1103,35 @@ img { transform: translateX(5px); } +/* Style pour le lien actif dans le footer */ +.footer-links a.active { + color: var(--primary-red); + font-weight: 600; + position: relative; +} + +.footer-links a.active::after { + content: ''; + position: absolute; + bottom: -3px; + left: 0; + width: 100%; + height: 2px; + background: linear-gradient(90deg, + transparent 0%, + var(--primary-red) 20%, + var(--primary-red) 80%, + transparent 100%); + opacity: 0.8; + transform-origin: center; + transition: transform 0.3s, opacity 0.3s; +} + +.footer-links a.active:hover::after { + opacity: 1; + transform: scaleX(1.1); +} + .footer-links a i { margin-right: 8px; } diff --git a/includes/footer.php b/includes/footer.php index 4b41075..23320c1 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -14,44 +14,54 @@