fix: Farbige Markierungen durch CSS-Zentralisierung beheben
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
parent
17c641d011
commit
03fc9909f3
4 changed files with 39 additions and 32 deletions
38
public/css/style.css
Normal file
38
public/css/style.css
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/* 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; }
|
||||
|
||||
/* Standard-Tabellen */
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
max-width: 800px;
|
||||
margin-top: 1em;
|
||||
}
|
||||
th, td { border: 1px solid #ccc; padding: 8px; text-align: left; }
|
||||
th { background-color: #f4f4f4; }
|
||||
tr:nth-child(even) { background-color: #f9f9f9; }
|
||||
|
||||
/* Container für breite, scrollbare Tabellen (Rangliste, Rundenansicht) */
|
||||
.table-container {
|
||||
width: 100%;
|
||||
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 */
|
||||
.tipp-cell { text-align: center; position: relative; }
|
||||
.col_exact { background-color: #28a745 !important; color: white; } /* Exaktes Ergebnis */
|
||||
.col_diff { background-color: #ffc107 !important; } /* Richtige Tordifferenz */
|
||||
.col_tendenz { background-color: #17a2b8 !important; color: white; } /* Richtige Tendenz */
|
||||
.col_joker_exact { background-color: #6f42c1 !important; color: white; } /* Exaktes Ergebnis mit Joker */
|
||||
|
||||
.round-filter { margin-bottom: 20px; }
|
||||
.joker-icon { font-size: 0.7em; vertical-align: top; }
|
||||
th.game-header { white-space: normal; }
|
||||
|
|
@ -4,15 +4,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title><?php echo htmlspecialchars($pageTitle); ?></title>
|
||||
<style>
|
||||
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; }
|
||||
table { border-collapse: collapse; width: 100%; max-width: 800px; margin-top: 1em;}
|
||||
th, td { border: 1px solid #ccc; padding: 8px; text-align: left; }
|
||||
th { background-color: #f4f4f4; }
|
||||
tr:nth-child(even) { background-color: #f9f9f9; }
|
||||
</style>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
|
|
|
|||
|
|
@ -11,18 +11,6 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
|
|||
// exit; // Besser, eine freundliche Nachricht im Layout anzuzeigen
|
||||
}
|
||||
?>
|
||||
<style>
|
||||
/* Styling für die Punkt-Zellen in der Rangliste */
|
||||
.tipp-cell { text-align: center; position: relative; }
|
||||
.col_exact { background-color: #28a745 !important; color: white; } /* Exaktes Ergebnis */
|
||||
.col_diff { background-color: #ffc107 !important; } /* Richtige Tordifferenz */
|
||||
.col_tendenz { background-color: #17a2b8 !important; color: white; } /* Richtige Tendenz */
|
||||
.col_joker_exact { background-color: #6f42c1 !important; color: white; } /* Exaktes Ergebnis mit Joker */
|
||||
.round-filter { margin-bottom: 20px; }
|
||||
.joker-icon { font-size: 0.7em; vertical-align: top; }
|
||||
th.game-header { white-space: normal; } /* Erlaubt Umbruch im Header */
|
||||
.table-container { width: 100%; overflow-x: auto; margin-top: 20px; }
|
||||
</style>
|
||||
|
||||
<h1>Rangliste</h1>
|
||||
<h2>Saison: <?php echo htmlspecialchars($currentSeason['name']); ?></h2>
|
||||
|
|
|
|||
|
|
@ -11,17 +11,6 @@ if (!isset($selectedRound) || !isset($roundsToShow) || !isset($users) || !isset(
|
|||
$pageTitle = 'Tippübersicht - ' . htmlspecialchars($selectedRound['name']);
|
||||
require __DIR__ . '/partials/header.php';
|
||||
?>
|
||||
<style>
|
||||
/* Styling für die Punkt-Zellen (aus Rangliste übernommen) */
|
||||
.tipp-cell { text-align: center; position: relative; }
|
||||
.col_exact { background-color: #28a745 !important; color: white; } /* Exaktes Ergebnis */
|
||||
.col_diff { background-color: #ffc107 !important; } /* Richtige Tordifferenz */
|
||||
.col_tendenz { background-color: #17a2b8 !important; color: white; } /* Richtige Tendenz */
|
||||
.col_joker_exact { background-color: #6f42c1 !important; color: white; } /* Exaktes Ergebnis mit Joker */
|
||||
.joker-icon { font-size: 0.7em; vertical-align: top; }
|
||||
th.game-header { white-space: normal; } /* Erlaubt Umbruch im Header */
|
||||
.table-container { width: 100%; overflow-x: auto; margin-top: 20px; }
|
||||
</style>
|
||||
|
||||
<h1>Tippübersicht bis: <?php echo htmlspecialchars($selectedRound['name']); ?></h1>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue