fix: stats visiteurs — fond semi-transparent + blur sur hero

Ajout de background:rgba(0,0,0,.45) + backdrop-filter:blur(4px)
pour garantir la lisibilité sur image blanche comme sur image noire.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-19 23:00:19 +02:00
parent 4b44486abb
commit 29cb9d7723
3 changed files with 15 additions and 8 deletions
+7
View File
@@ -5,6 +5,13 @@ Format : [Keep a Changelog](https://keepachangelog.com/fr/1.0.0/) — versionnag
---
## [1.6.40] - 2026-05-19
### Modifié
- Page article / stats visiteurs : fond `rgba(0,0,0,.45)` + `backdrop-filter:blur` pour lisibilité sur image claire ou foncée
---
## [1.6.39] - 2026-05-19
### Modifié
+1 -1
View File
@@ -1 +1 @@
1.6.39
1.6.40
+7 -7
View File
@@ -184,19 +184,19 @@ $_v14 = (int) ($articleVisitors[14] ?? $articleVisitors['14'] ?? 0);
$_v7 = (int) ($articleVisitors[7] ?? $articleVisitors['7'] ?? 0);
if ($_v30 > 0):
?>
<p class="article-hero-visitors" style="margin-top:.5rem;font-size:.82rem;color:rgba(255,255,255,.95);text-shadow:0 1px 4px rgba(0,0,0,.7)">
<p class="article-hero-visitors" style="margin-top:.5rem;font-size:.82rem;color:#fff;display:inline-block;background:rgba(0,0,0,.45);backdrop-filter:blur(4px);padding:.15rem .55rem;border-radius:.35rem">
<span title="Lecteurs uniques sur 7 jours">
<strong><?= number_format($_v7, 0, ',', "\xE2\x80\xAF") ?></strong>&thinsp;<span style="color:rgba(255,255,255,.65);font-size:.75em">/ 7 j</span>
<strong><?= number_format($_v7, 0, ',', "\xE2\x80\xAF") ?></strong>&thinsp;<span style="opacity:.7;font-size:.75em">/ 7 j</span>
</span>
<span style="color:rgba(255,255,255,.4)">&nbsp;·&nbsp;</span>
<span style="opacity:.45">&nbsp;·&nbsp;</span>
<span title="Lecteurs uniques sur 14 jours">
<strong><?= number_format($_v14, 0, ',', "\xE2\x80\xAF") ?></strong>&thinsp;<span style="color:rgba(255,255,255,.65);font-size:.75em">/ 14 j</span>
<strong><?= number_format($_v14, 0, ',', "\xE2\x80\xAF") ?></strong>&thinsp;<span style="opacity:.7;font-size:.75em">/ 14 j</span>
</span>
<span style="color:rgba(255,255,255,.4)">&nbsp;·&nbsp;</span>
<span style="opacity:.45">&nbsp;·&nbsp;</span>
<span title="Lecteurs uniques sur 30 jours">
<strong><?= number_format($_v30, 0, ',', "\xE2\x80\xAF") ?></strong>&thinsp;<span style="color:rgba(255,255,255,.65);font-size:.75em">/ 30 j</span>
<strong><?= number_format($_v30, 0, ',', "\xE2\x80\xAF") ?></strong>&thinsp;<span style="opacity:.7;font-size:.75em">/ 30 j</span>
</span>
<span style="color:rgba(255,255,255,.55)">&nbsp;lecteurs</span>
<span style="opacity:.65">&nbsp;lecteurs</span>
</p>
<?php endif;
unset($_v30, $_v14, $_v7); ?>