fix: stats visiteurs hero — blanc explicite + text-shadow pour visibilité
Remplace opacity par color:rgba(255,255,255,.95) et text-shadow pour que les chiffres soient lisibles sur toute image de couverture. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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:.4rem;font-size:.78rem;opacity:.9">
|
||||
<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)">
|
||||
<span title="Lecteurs uniques sur 7 jours">
|
||||
<strong><?= number_format($_v7, 0, ',', "\xE2\x80\xAF") ?></strong> <span style="opacity:.7">/ 7 j</span>
|
||||
<strong><?= number_format($_v7, 0, ',', "\xE2\x80\xAF") ?></strong> <span style="color:rgba(255,255,255,.65);font-size:.75em">/ 7 j</span>
|
||||
</span>
|
||||
<span style="opacity:.4"> · </span>
|
||||
<span style="color:rgba(255,255,255,.4)"> · </span>
|
||||
<span title="Lecteurs uniques sur 14 jours">
|
||||
<strong><?= number_format($_v14, 0, ',', "\xE2\x80\xAF") ?></strong> <span style="opacity:.7">/ 14 j</span>
|
||||
<strong><?= number_format($_v14, 0, ',', "\xE2\x80\xAF") ?></strong> <span style="color:rgba(255,255,255,.65);font-size:.75em">/ 14 j</span>
|
||||
</span>
|
||||
<span style="opacity:.4"> · </span>
|
||||
<span style="color:rgba(255,255,255,.4)"> · </span>
|
||||
<span title="Lecteurs uniques sur 30 jours">
|
||||
<strong><?= number_format($_v30, 0, ',', "\xE2\x80\xAF") ?></strong> <span style="opacity:.7">/ 30 j</span>
|
||||
<strong><?= number_format($_v30, 0, ',', "\xE2\x80\xAF") ?></strong> <span style="color:rgba(255,255,255,.65);font-size:.75em">/ 30 j</span>
|
||||
</span>
|
||||
<span style="opacity:.55"> lecteurs</span>
|
||||
<span style="color:rgba(255,255,255,.55)"> lecteurs</span>
|
||||
</p>
|
||||
<?php endif;
|
||||
unset($_v30, $_v14, $_v7); ?>
|
||||
|
||||
Reference in New Issue
Block a user