User-Icon im Spielermenü zurücknehmen
This commit is contained in:
parent
c7146f0fd2
commit
7e0c7828f2
4 changed files with 19 additions and 27 deletions
|
|
@ -10,7 +10,7 @@ Diese Datei ersetzt die Erkundung. Erst hier nachschlagen, dann gezielt mit
|
|||
Abschnitt zu lesen. `docs/legacy/` ist absichtlich ausgeblendet (siehe
|
||||
`.ignore`); dort liegt der alte Laravel-Stand.
|
||||
|
||||
Umfang: 11438 Zeilen in 66 Dateien.
|
||||
Umfang: 11427 Zeilen in 66 Dateien.
|
||||
|
||||
## Einstiegspunkte
|
||||
|
||||
|
|
@ -115,7 +115,7 @@ ohne View.
|
|||
| `tippspiel/src/Views/info/quotas.php` | 61 | Quoten und Ausschüttung der Saison |
|
||||
| `tippspiel/src/Views/login.php` | 55 | Login-Formular |
|
||||
| `tippspiel/src/Views/partials/footer.php` | 32 | Seitenabschluss und Skripte |
|
||||
| `tippspiel/src/Views/partials/header.php` | 115 | HTML-Kopf, Navigation inkl. Admin-Menü und Saison-Umschalter |
|
||||
| `tippspiel/src/Views/partials/header.php` | 104 | HTML-Kopf, Navigation inkl. Admin-Menü und Saison-Umschalter |
|
||||
| `tippspiel/src/Views/questions.php` | 138 | Fragen der Spieler und Admin-Antworten |
|
||||
| `tippspiel/src/Views/ranking.php` | 433 | Rangliste (Runde/Saison) inkl. Joker-Wertung |
|
||||
| `tippspiel/src/Views/register.php` | 81 | Registrierung inkl. Zahlungshinweis |
|
||||
|
|
|
|||
|
|
@ -240,16 +240,6 @@ a:hover { color: var(--pitch-dark); }
|
|||
.brand-accent { color: var(--gold); }
|
||||
|
||||
.nav-user { margin-left: auto; }
|
||||
.nav-user-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4em;
|
||||
}
|
||||
.nav-user-icon {
|
||||
width: 1.3em;
|
||||
height: 1.3em;
|
||||
flex: none;
|
||||
}
|
||||
|
||||
/* Menüpunkt "Fragen": animiertes Leuchten bei neuen Fragen/Antworten */
|
||||
@keyframes nav-glow {
|
||||
|
|
@ -536,13 +526,20 @@ th.game-header { white-space: normal; }
|
|||
.site-nav {
|
||||
padding: 0.35em 0.4em;
|
||||
position: static;
|
||||
font-size: 0.8em;
|
||||
font-size: 0.74em;
|
||||
gap: 0.1em 0.15em;
|
||||
}
|
||||
.site-nav .brand { display: none; }
|
||||
.site-nav a { padding: 0.3em 0.4em; }
|
||||
.nav-user { margin-left: 0; }
|
||||
.nav-user-name { display: none; }
|
||||
.nav-user .nav-dropdown > a {
|
||||
display: inline-block;
|
||||
max-width: 13em;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
/* Formulare: Label über dem Feld statt daneben */
|
||||
.form-group label {
|
||||
|
|
@ -565,3 +562,9 @@ th.game-header { white-space: normal; }
|
|||
h1 { font-size: 1.3em; }
|
||||
h2 { font-size: 1.1em; }
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.site-nav { font-size: 0.66em; gap: 0.1em 0.05em; padding: 0.35em 0.25em; }
|
||||
.site-nav a { padding: 0.28em 0.28em; }
|
||||
.nav-user .nav-dropdown > a { max-width: 9em; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
// HTML-Seiten werden bewusst NICHT gecacht: Sie enthalten den Login-Status und
|
||||
// würden nach Ablauf der Session eine veraltete, eingeloggte Ansicht zeigen.
|
||||
|
||||
const CACHE_NAME = 'tippspiel2027-v10';
|
||||
const CACHE_NAME = 'tippspiel2027-v11';
|
||||
const STATIC_ASSETS = [
|
||||
'/css/style.css',
|
||||
'/img/icon-192.png',
|
||||
|
|
|
|||
|
|
@ -87,19 +87,8 @@ $styleVersion = @filemtime(__DIR__ . '/../../../public/css/style.css');
|
|||
</span>
|
||||
<span class="nav-user">
|
||||
<?php if (App\Core\Auth::check()): ?>
|
||||
<?php $navUserName = (string)App\Core\Auth::user()['name']; ?>
|
||||
<span class="nav-dropdown">
|
||||
<a href="#" onclick="return false;" class="nav-user-link"
|
||||
aria-label="Benutzermenü von <?php echo htmlspecialchars($navUserName); ?>"
|
||||
aria-haspopup="true"
|
||||
title="<?php echo htmlspecialchars($navUserName); ?>">
|
||||
<svg class="nav-user-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
||||
stroke-width="2" stroke-linecap="round" aria-hidden="true" focusable="false">
|
||||
<circle cx="12" cy="8" r="4"></circle>
|
||||
<path d="M4 21c0-4 3.6-7 8-7s8 3 8 7"></path>
|
||||
</svg>
|
||||
<span class="nav-user-name">( <?php echo htmlspecialchars($navUserName); ?> )</span>
|
||||
</a>
|
||||
<a href="#" onclick="return false;">( <?php echo htmlspecialchars(App\Core\Auth::user()['name']); ?> )</a>
|
||||
<span class="nav-dropdown-content">
|
||||
<a href="/index.php?page=tipps">Tipps</a>
|
||||
<a href="/index.php?page=settings">Einstellungen</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue