stylesheet
This commit is contained in:
parent
9632fa9335
commit
c2242e4eb3
10 changed files with 290 additions and 52 deletions
|
|
@ -1,55 +1,258 @@
|
|||
/* Globale Stile */
|
||||
body { font-family: sans-serif; margin: 2em; }
|
||||
nav { background: #f4f4f4; padding: 1em; margin-bottom: 2em; }
|
||||
nav a { margin-right: 1em; text-decoration: none; color: #333; font-weight: bold; }
|
||||
/* ==========================================================================
|
||||
Tippspiel 2027 – Stadion-Design
|
||||
Nur Systemschriften (keine externen Webfonts, datenschutzfreundlich).
|
||||
========================================================================== */
|
||||
|
||||
/* Dropdown in der Navigation (Info -> Quoten / Geldrangliste) */
|
||||
:root {
|
||||
--pitch-dark: #0b3d23; /* Rasen dunkel: Navigation, Tabellenköpfe */
|
||||
--pitch: #14632f; /* Rasen: Buttons, Akzente */
|
||||
--pitch-light: #e8f3ec; /* Rasen hell: Zebra-Zeilen, Hover */
|
||||
--gold: #f2c230; /* Pokal-Gold: Akzentlinie, Platz 1 */
|
||||
--silver: #c0c6cc;
|
||||
--bronze: #cd8a4f;
|
||||
--ink: #1c2421; /* Text */
|
||||
--muted: #66706b;
|
||||
--line: #d5ddd8; /* Rahmen */
|
||||
--page-bg: #eef1ef;
|
||||
--link: #14632f;
|
||||
|
||||
/* Trefferfarben (Rangliste, Legende, Anleitung) */
|
||||
--col-tendenz: #7b8794;
|
||||
--col-exact: #f0a020;
|
||||
--col-joker-exact: #d62d2d;
|
||||
|
||||
--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
--font-display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", "Segoe UI", system-ui, sans-serif;
|
||||
}
|
||||
|
||||
/* Grundlayout ------------------------------------------------------------- */
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: var(--font);
|
||||
color: var(--ink);
|
||||
background:
|
||||
repeating-linear-gradient(90deg, rgba(20, 99, 47, 0.025) 0 80px, transparent 80px 160px),
|
||||
var(--page-bg);
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.page {
|
||||
max-width: 1400px;
|
||||
margin: 1.5em auto;
|
||||
padding: 1.5em 2em 2em;
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 2px 12px rgba(11, 61, 35, 0.08);
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.02em;
|
||||
color: var(--pitch-dark);
|
||||
}
|
||||
h1 {
|
||||
text-transform: uppercase;
|
||||
margin-top: 0.2em;
|
||||
padding-bottom: 0.25em;
|
||||
border-bottom: 4px solid var(--gold);
|
||||
display: inline-block;
|
||||
}
|
||||
h2 { margin-top: 1.4em; }
|
||||
|
||||
a { color: var(--link); }
|
||||
|
||||
/* Sprungziele (#round-…, #playerid_…) nicht unter der fixierten Navigation verstecken */
|
||||
[id] { scroll-margin-top: 90px; }
|
||||
a:hover { color: var(--pitch-dark); }
|
||||
|
||||
/* Navigation ("Stadionbanner") -------------------------------------------- */
|
||||
.site-nav {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.2em 0.4em;
|
||||
padding: 0.55em 1.5em;
|
||||
background: linear-gradient(180deg, #145a32 0%, var(--pitch-dark) 100%);
|
||||
border-bottom: 4px solid var(--gold);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 20;
|
||||
}
|
||||
.site-nav a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
font-family: var(--font-display);
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
padding: 0.35em 0.7em;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.site-nav > a:hover,
|
||||
.site-nav .nav-dropdown > a:hover,
|
||||
.site-nav .nav-dropdown:focus-within > a { background: rgba(255, 255, 255, 0.12); color: var(--gold); }
|
||||
|
||||
.site-nav .brand {
|
||||
font-size: 1.15em;
|
||||
font-weight: 900;
|
||||
letter-spacing: 0.06em;
|
||||
margin-right: 0.8em;
|
||||
padding-left: 0;
|
||||
}
|
||||
.site-nav .brand:hover { background: none; }
|
||||
.brand-ball { display: inline-block; transition: transform 0.4s; }
|
||||
.site-nav .brand:hover .brand-ball { transform: rotate(180deg); }
|
||||
.brand-year { color: var(--gold); }
|
||||
|
||||
.nav-user { margin-left: auto; }
|
||||
|
||||
/* Dropdowns in der Navigation (Administration, Info, Spielermenü) */
|
||||
.nav-dropdown { position: relative; display: inline-block; }
|
||||
.nav-dropdown-content {
|
||||
display: none;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 100%;
|
||||
z-index: 10;
|
||||
min-width: 12em;
|
||||
padding: 0.5em 0;
|
||||
background: #f4f4f4;
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
||||
z-index: 30;
|
||||
min-width: 13em;
|
||||
padding: 0.4em 0;
|
||||
background: #fff;
|
||||
border-top: 3px solid var(--gold);
|
||||
border-radius: 0 0 8px 8px;
|
||||
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.nav-dropdown-content a { display: block; margin: 0; padding: 0.3em 1em; font-weight: normal; }
|
||||
.nav-dropdown-content a:hover { background: #e4e4e4; }
|
||||
.nav-dropdown-form { margin: 0.3em 0 0; padding-top: 0.3em; border-top: 1px solid #ccc; }
|
||||
.nav-user .nav-dropdown-content { left: auto; right: 0; }
|
||||
.site-nav .nav-dropdown-content a {
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0.45em 1.1em;
|
||||
border-radius: 0;
|
||||
color: var(--ink);
|
||||
font-family: var(--font);
|
||||
font-weight: 500;
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
.site-nav .nav-dropdown-content a:hover { background: var(--pitch-light); color: var(--pitch-dark); }
|
||||
.nav-dropdown-form { margin: 0.3em 0 0; padding-top: 0.3em; border-top: 1px solid var(--line); }
|
||||
.nav-dropdown-form button {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 0.3em 1em;
|
||||
padding: 0.45em 1.1em;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
background: none;
|
||||
color: #333;
|
||||
color: var(--ink);
|
||||
font: inherit;
|
||||
font-weight: 500;
|
||||
text-align: left;
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
box-shadow: none;
|
||||
}
|
||||
.nav-dropdown-form button:hover { background: #e4e4e4; }
|
||||
.nav-dropdown-form small { color: #777; }
|
||||
.nav-dropdown-content { white-space: nowrap; }
|
||||
.nav-dropdown-form button:hover { background: var(--pitch-light); }
|
||||
.nav-dropdown-form small { color: var(--muted); }
|
||||
.nav-dropdown:hover .nav-dropdown-content,
|
||||
.nav-dropdown:focus-within .nav-dropdown-content { display: block; }
|
||||
|
||||
/* Standard-Tabellen */
|
||||
/* Fußzeile */
|
||||
.site-footer {
|
||||
text-align: center;
|
||||
color: var(--muted);
|
||||
font-size: 0.75em;
|
||||
padding: 0 0 2em;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* Tabellen ("Anzeigetafel") ------------------------------------------------ */
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
width: 100%;
|
||||
max-width: 800px;
|
||||
margin-top: 1em;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
th, td { border: 1px solid #ccc; padding: 8px; text-align: left; }
|
||||
th { background-color: #f4f4f4; }
|
||||
/* tr:nth-child(even) { background-color: #f9f9f9; } */ /* Deaktiviert, da es mit Zell-Farben interferiert */
|
||||
th, td {
|
||||
border: none;
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding: 8px 10px;
|
||||
text-align: left;
|
||||
}
|
||||
tbody tr:last-child td { border-bottom: none; }
|
||||
th {
|
||||
background: var(--pitch-dark);
|
||||
color: #fff;
|
||||
font-family: var(--font-display);
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
th a { color: var(--gold); }
|
||||
tbody tr:nth-child(even) td { background-color: #f6faf7; }
|
||||
tbody tr:hover td { background-color: var(--pitch-light); }
|
||||
tfoot th, tfoot td { background: #f0f4f1; color: var(--ink); border-top: 2px solid var(--pitch-dark); }
|
||||
|
||||
/* Utility-Klassen */
|
||||
/* Formulare --------------------------------------------------------------- */
|
||||
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
|
||||
input[type="datetime-local"], select, textarea {
|
||||
font: inherit;
|
||||
padding: 0.35em 0.55em;
|
||||
border: 1px solid #b9c4bd;
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
color: var(--ink);
|
||||
}
|
||||
input:focus, select:focus, textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--pitch);
|
||||
box-shadow: 0 0 0 3px rgba(20, 99, 47, 0.18);
|
||||
}
|
||||
input[readonly] { background: #f2f4f3; color: var(--muted); }
|
||||
input[type="checkbox"] { accent-color: var(--pitch); width: 1.1em; height: 1.1em; vertical-align: middle; }
|
||||
|
||||
button {
|
||||
font: inherit;
|
||||
font-family: var(--font-display);
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
padding: 0.4em 1.2em;
|
||||
color: #fff;
|
||||
background: linear-gradient(180deg, #1b7a3b, var(--pitch));
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
box-shadow: 0 2px 0 var(--pitch-dark);
|
||||
cursor: pointer;
|
||||
}
|
||||
button:hover { background: var(--pitch-dark); }
|
||||
button:active { transform: translateY(1px); box-shadow: none; }
|
||||
button:disabled { background: #b8c2bc; box-shadow: none; cursor: not-allowed; }
|
||||
/* Link-artige Buttons (z.B. "Löschen", "Als aktiv setzen") bleiben schlicht */
|
||||
button.link-button {
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
color: var(--link);
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
font-family: var(--font);
|
||||
font-weight: normal;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* Utility-Klassen ---------------------------------------------------------- */
|
||||
.text-center { text-align: center !important; }
|
||||
|
||||
/* Container für breite, scrollbare Tabellen (Rangliste, Rundenansicht) */
|
||||
|
|
@ -58,17 +261,30 @@ th { background-color: #f4f4f4; }
|
|||
overflow-x: auto;
|
||||
margin-top: 20px;
|
||||
}
|
||||
/* Spezifische Stile für Tabellen in diesem Container */
|
||||
.table-container table {
|
||||
width: auto;
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
/* Stile für Zellen in Rangliste/Rundenansicht */
|
||||
td.tipp-cell { text-align: center !important; position: relative; }
|
||||
td.tipp-cell.col_exact { background-color: orange !important; color: white; } /* Exaktes Ergebnis */
|
||||
td.tipp-cell.col_tendenz { background-color: grey !important; color: white; } /* Richtige Tendenz */
|
||||
td.tipp-cell.col_joker_exact { background-color: red !important; color: white; } /* Exaktes Ergebnis mit Joker */
|
||||
/* Rangliste --------------------------------------------------------------- */
|
||||
td.tipp-cell { text-align: center !important; position: relative; font-weight: 700; }
|
||||
td.tipp-cell.col_exact { background-color: var(--col-exact) !important; color: #fff; } /* Exaktes Ergebnis */
|
||||
td.tipp-cell.col_tendenz { background-color: var(--col-tendenz) !important; color: #fff; } /* Richtige Tendenz */
|
||||
td.tipp-cell.col_joker_exact { background-color: var(--col-joker-exact) !important; color: #fff; } /* Exakt mit Joker */
|
||||
|
||||
/* Platz-Plakette, Gold/Silber/Bronze für die Top 3 */
|
||||
.rank-badge {
|
||||
display: inline-block;
|
||||
min-width: 2em;
|
||||
padding: 0.1em 0.4em;
|
||||
border-radius: 999px;
|
||||
font-weight: 800;
|
||||
text-align: center;
|
||||
}
|
||||
tr.rank-1 .rank-badge { background: var(--gold); color: #3d2d00; }
|
||||
tr.rank-2 .rank-badge { background: var(--silver); color: #23292e; }
|
||||
tr.rank-3 .rank-badge { background: var(--bronze); color: #fff; }
|
||||
tr.me td:not(.tipp-cell) { background-color: #fff6d6 !important; font-weight: 700; }
|
||||
|
||||
.round-filter { margin-bottom: 20px; }
|
||||
.joker-icon {
|
||||
|
|
@ -82,9 +298,11 @@ th.game-header { white-space: normal; }
|
|||
/* Legende */
|
||||
.legend {
|
||||
margin: 20px 0;
|
||||
padding: 10px;
|
||||
border: 1px solid #ccc;
|
||||
background-color: #f9f9f9;
|
||||
padding: 10px 14px;
|
||||
border: 1px solid var(--line);
|
||||
border-left: 5px solid var(--pitch);
|
||||
border-radius: 8px;
|
||||
background-color: #f7faf8;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 15px;
|
||||
|
|
@ -98,5 +316,13 @@ th.game-header { white-space: normal; }
|
|||
.legend-color {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border: 1px solid #666;
|
||||
border-radius: 4px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
/* Kleine Bildschirme ------------------------------------------------------- */
|
||||
@media (max-width: 700px) {
|
||||
.page { margin: 0.6em; padding: 1em; border-radius: 6px; }
|
||||
.site-nav { padding: 0.5em 0.6em; position: static; }
|
||||
.nav-user { margin-left: 0; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -169,9 +169,9 @@ require __DIR__ . '/../partials/header.php';
|
|||
.mail-form .hint { color: #666; font-size: 0.8em; }
|
||||
.pagination { margin-top: 1em; display: flex; flex-wrap: wrap; gap: 0.3em; align-items: center; }
|
||||
.pagination a, .pagination span { padding: 0.2em 0.6em; border: 1px solid #ccc; border-radius: 3px; text-decoration: none; }
|
||||
.pagination a { color: #007bff; }
|
||||
.pagination a { color: var(--link); }
|
||||
.pagination a:hover { background: #f4f4f4; }
|
||||
.pagination .current { background: #007bff; border-color: #007bff; color: white; font-weight: bold; }
|
||||
.pagination .current { background: var(--link); border-color: var(--link); color: white; font-weight: bold; }
|
||||
.pagination .disabled { color: #aaa; }
|
||||
.pagination .gap { border: none; }
|
||||
.pagination-info { color: #666; font-size: 0.8em; }
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ $failedRoundId = $failedForm ? (int)($failedForm['round_id'] ?? 0) : null;
|
|||
<style>
|
||||
.round-index a { margin-right: 0.6em; white-space: nowrap; text-decoration: none; }
|
||||
.round-index a.done { color: #888; }
|
||||
.round-index a.open { color: #007bff; font-weight: bold; }
|
||||
.round-index a.open { color: var(--link); font-weight: bold; }
|
||||
.round-admin { border: 1px solid #ccc; padding: 0.5em 1em; margin-bottom: 1em; max-width: 1000px; }
|
||||
.round-admin summary { cursor: pointer; }
|
||||
.round-admin summary small { color: #666; margin-left: 1em; }
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ require __DIR__ . '/../partials/header.php';
|
|||
.link-button {
|
||||
background: none;
|
||||
border: none;
|
||||
color: #007bff;
|
||||
color: var(--link);
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
font-size: inherit;
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ require __DIR__ . '/../partials/header.php';
|
|||
.link-button {
|
||||
background: none;
|
||||
border: none;
|
||||
color: #007bff;
|
||||
color: var(--link);
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
font-size: inherit;
|
||||
|
|
|
|||
|
|
@ -100,9 +100,9 @@ $exactExamples = ['1:0', '2:1', '2:2', '3:1', '3:2', '4:2', '5:3'];
|
|||
<li><strong>Gleichstand</strong>: Spieler mit gleicher Gesamtpunktzahl teilen sich den Platz. Der nächste Platz wird übersprungen (z.B. 1., 1., 3.). Innerhalb eines geteilten Platzes wird alphabetisch sortiert.</li>
|
||||
<li><strong>Punkte (Runde)</strong>: Punkte der gewählten Runde inklusive Rundenbonus.</li>
|
||||
<li>Pro Spiel siehst du die Punkte jedes Spielers. Beim Überfahren mit der Maus erscheint der getippte Tipp. Die Farbe zeigt den Treffer:
|
||||
<span class="swatch" style="background: grey;"></span> richtige Tendenz,
|
||||
<span class="swatch" style="background: orange;"></span> exaktes Ergebnis,
|
||||
<span class="swatch" style="background: red;"></span> exaktes Ergebnis mit Joker.
|
||||
<span class="swatch" style="background: var(--col-tendenz);"></span> richtige Tendenz,
|
||||
<span class="swatch" style="background: var(--col-exact);"></span> exaktes Ergebnis,
|
||||
<span class="swatch" style="background: var(--col-joker-exact);"></span> exaktes Ergebnis mit Joker.
|
||||
Das Joker-Symbol markiert, wo der Joker gesetzt war.</li>
|
||||
<li>🏆 markiert die Tagessieger der Runde.</li>
|
||||
</ul>
|
||||
|
|
@ -134,7 +134,7 @@ $exactExamples = ['1:0', '2:1', '2:2', '3:1', '3:2', '4:2', '5:3'];
|
|||
.guide .lead { color: #555; }
|
||||
.guide h2 { margin-top: 1.8em; border-bottom: 1px solid #ddd; padding-bottom: 0.2em; scroll-margin-top: 1em; }
|
||||
.guide-toc { background: none; padding: 0; margin: 0 0 1em; }
|
||||
.guide-toc a { margin-right: 1em; font-weight: normal; color: #007bff; }
|
||||
.guide-toc a { margin-right: 1em; font-weight: normal; color: var(--link); }
|
||||
.guide-table { width: auto; margin: 0.8em 0; }
|
||||
.guide-table td:last-child, .guide-table th:last-child { text-align: center; }
|
||||
.guide-table.compact td, .guide-table.compact th { padding: 4px 10px; text-align: center; }
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
</main>
|
||||
<footer class="site-footer">⚽ Tippspiel 2027</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title><?php echo htmlspecialchars($pageTitle); ?></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⚽</text></svg>">
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
<style>
|
||||
|
|
@ -13,7 +15,8 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
<nav class="site-nav">
|
||||
<a href="/" class="brand"><span class="brand-ball">⚽</span> Tippspiel <span class="brand-year">2027</span></a>
|
||||
<a href="/">Start</a>
|
||||
<?php if (App\Core\Auth::isAdmin()): $registrationOpen = App\Models\Setting::isRegistrationOpen(); ?>
|
||||
<span class="nav-dropdown">
|
||||
|
|
@ -46,7 +49,7 @@
|
|||
<a href="/index.php?page=money_ranking">Geldrangliste</a>
|
||||
</span>
|
||||
</span>
|
||||
<span>
|
||||
<span class="nav-user">
|
||||
<?php if (App\Core\Auth::check()): ?>
|
||||
<span class="nav-dropdown">
|
||||
<a href="#" onclick="return false;">( <?php echo htmlspecialchars(App\Core\Auth::user()['name']); ?> )</a>
|
||||
|
|
@ -60,3 +63,4 @@
|
|||
<?php endif; ?>
|
||||
</span>
|
||||
</nav>
|
||||
<main class="page">
|
||||
|
|
|
|||
|
|
@ -67,9 +67,9 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
|
|||
<div class="legend">
|
||||
<div class="legend-item"><span class="daily-winner-icon">🏆</span> Tagessieger</div>
|
||||
<div class="legend-item"><img src="/img/joker.png" alt="Joker" class="joker-icon"> Joker gesetzt</div>
|
||||
<div class="legend-item"><div class="legend-color" style="background-color: grey;"></div> Richtige Tendenz</div>
|
||||
<div class="legend-item"><div class="legend-color" style="background-color: orange;"></div> Richtiges Ergebnis</div>
|
||||
<div class="legend-item"><div class="legend-color" style="background-color: red;"></div> Richtiges Ergebnis mit Joker</div>
|
||||
<div class="legend-item"><div class="legend-color" style="background-color: var(--col-tendenz);"></div> Richtige Tendenz</div>
|
||||
<div class="legend-item"><div class="legend-color" style="background-color: var(--col-exact);"></div> Richtiges Ergebnis</div>
|
||||
<div class="legend-item"><div class="legend-color" style="background-color: var(--col-joker-exact);"></div> Richtiges Ergebnis mit Joker</div>
|
||||
</div>
|
||||
|
||||
<div class="table-container">
|
||||
|
|
@ -92,9 +92,13 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($ranking as $entry): ?>
|
||||
<tr>
|
||||
<td class="text-center"><?php echo $entry['rank']; ?>.</td>
|
||||
<?php foreach ($ranking as $entry):
|
||||
$rowClasses = [];
|
||||
if ($entry['rank'] <= 3) $rowClasses[] = 'rank-' . $entry['rank'];
|
||||
if ((int)$entry['user_id'] === (int)App\Core\Auth::id()) $rowClasses[] = 'me';
|
||||
?>
|
||||
<tr<?php if ($rowClasses) echo ' class="' . implode(' ', $rowClasses) . '"'; ?>>
|
||||
<td class="text-center"><span class="rank-badge"><?php echo $entry['rank']; ?>.</span></td>
|
||||
<td><?php echo htmlspecialchars($entry['name']); ?></td>
|
||||
<td class="text-center"><?php echo $entry['is_day_winner'] ? '<span class="daily-winner-icon">🏆</span>' : ''; ?></td>
|
||||
<td class="text-center"><strong><?php echo $entry['total']; ?></strong></td>
|
||||
|
|
|
|||
|
|
@ -77,6 +77,8 @@ if (!location.hash) {
|
|||
.tipp-round { margin-bottom: 2.5em; }
|
||||
.tipp-round h2 { margin-bottom: 0.3em; scroll-margin-top: 1em; }
|
||||
.tipp-round .joker-icon { width: 1.5em; height: 1.5em; }
|
||||
.tipp-round td:not(:first-child) { white-space: nowrap; }
|
||||
.tipp-round table { max-width: 1050px; }
|
||||
</style>
|
||||
|
||||
<?php require __DIR__ . '/../partials/footer.php'; ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue