feat: Implementiere Harlekin-Mütze als Joker-Icon via SVG
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
parent
a47e002a79
commit
03ae959b5e
4 changed files with 16 additions and 4 deletions
|
|
@ -37,7 +37,16 @@ td.tipp-cell.col_tendenz { background-color: grey !important; color: white; } /*
|
|||
td.tipp-cell.col_joker_exact { background-color: red !important; color: white; } /* Exaktes Ergebnis mit Joker */
|
||||
|
||||
.round-filter { margin-bottom: 20px; }
|
||||
.joker-icon { vertical-align: top; color: #6f42c1; padding-left: 4px; } /* Purple color for wizard hat */
|
||||
.joker-icon {
|
||||
display: inline-block;
|
||||
width: 1.1em;
|
||||
height: 1.1em;
|
||||
background-color: #6f42c1; /* Purple color */
|
||||
-webkit-mask: url(/icons/harlequin-hat.svg) no-repeat center;
|
||||
mask: url(/icons/harlequin-hat.svg) no-repeat center;
|
||||
vertical-align: text-bottom;
|
||||
margin-left: 4px;
|
||||
}
|
||||
th.game-header { white-space: normal; }
|
||||
|
||||
/* Legende */
|
||||
|
|
|
|||
3
public/icons/harlequin-hat.svg
Normal file
3
public/icons/harlequin-hat.svg
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
|
||||
<path fill="currentColor" d="M160 832h704v64H160zM416 128c-23.712 0-45.504 10.304-60.8 27.2L204.8 307.2A88.128 88.128 0 0 0 160 368c0 48.64 39.36 88 88 88s88-39.36 88-88a88.128 88.128 0 0 0-44.8-76.8l72.32-83.2A64 64 0 0 1 416 128zm192 0a64 64 0 0 1 52.48 88l72.32 83.2a88.128 88.128 0 0 0-44.8 76.8c0 48.64 39.36 88 88 88s88-39.36 88-88a88.128 88.128 0 0 0-44.8-76.8L669.6 155.2A64 64 0 0 1 608 128zM352 512c0 23.712 10.304 45.504 27.2 60.8l152 150.4a88.128 88.128 0 0 0 60.8 27.2c48.64 0 88-39.36 88-88s-39.36-88-88-88a88.128 88.128 0 0 0-60.8 27.2l-68.8-67.2A64 64 0 0 1 352 512z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 662 B |
|
|
@ -32,7 +32,7 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
|
|||
|
||||
<div class="legend">
|
||||
<div class="legend-item">🏆 Tagessieger</div>
|
||||
<div class="legend-item"><i class="fa-solid fa-hat-wizard joker-icon"></i> Joker gesetzt</div>
|
||||
<div class="legend-item"><span class="joker-icon"></span> Joker gesetzt</div>
|
||||
<div class="legend-item"><div class="legend-color" style="background-color: orange;"></div> Exaktes Ergebnis</div>
|
||||
<div class="legend-item"><div class="legend-color" style="background-color: red;"></div> Exakt mit Joker</div>
|
||||
<div class="legend-item"><div class="legend-color" style="background-color: gold;"></div> Richtige Differenz</div>
|
||||
|
|
@ -78,7 +78,7 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
|
|||
<td class="tipp-cell <?php echo htmlspecialchars($td_class); ?>" title="Tipp: <?php echo htmlspecialchars($tipp['text']); ?> | Punkte: <?php echo $tipp['points']; ?>">
|
||||
<?php echo $tipp['points']; ?>
|
||||
<?php if ($tipp['is_joker']): ?>
|
||||
<i class="fa-solid fa-hat-wizard joker-icon" title="Joker"></i>
|
||||
<span class="joker-icon" title="Joker"></span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ require __DIR__ . '/partials/header.php';
|
|||
<td class="tipp-cell <?php echo htmlspecialchars($td_class); ?>" title="Tipp: <?php echo htmlspecialchars($text); ?>">
|
||||
<?php echo htmlspecialchars($text); ?>
|
||||
<?php if ($is_joker && Game::isLocked($game['kickoff'])): ?>
|
||||
<i class="fa-solid fa-hat-wizard joker-icon" title="Joker"></i>
|
||||
<span class="joker-icon" title="Joker"></span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue