From 70f050dc197f57f1b0c4b59695f704375f032916 Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Sat, 19 Sep 2026 07:51:56 +0200 Subject: [PATCH] =?UTF-8?q?Turn=20Archivieren/Wiederherstellen/Endg=C3=BCl?= =?UTF-8?q?tig=20l=C3=B6schen=20into=20icon=20buttons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces the three raid action text-buttons with icon-only buttons (archive box, restore arrow, trash can) using the existing icon-button style; the label now only shows as a native tooltip on hover via the title attribute. The delete button gets a new icon-button-danger modifier so it still reads as destructive (red on hover) instead of the default gold. Also fixes a pre-existing bug this surfaced: .icon-button:hover only set color/border-color, so the global button:hover rule's gold background bled through on hover for every icon-button on the site (edit toggle, modal close, etc.), not just the new ones. Co-Authored-By: Claude Sonnet 5 --- assets/css/style.css | 7 ++++++- includes/functions.php | 3 +++ raids.php | 6 +++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 5df73be..6a22f29 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -652,7 +652,12 @@ input:focus, select:focus, textarea:focus { cursor: pointer; } -.icon-button:hover { color: var(--gold); border-color: var(--gold); } +/* background explizit wiederholen: sonst gewinnt die globale "button:hover"-Regel + (Gold-Flaeche) fuer die Hover-Hintergrundfarbe, da .icon-button sie nur im + Ruhezustand setzt. */ +.icon-button:hover { color: var(--gold); border-color: var(--gold); background: var(--bg-panel-alt); } + +.icon-button-danger:hover { color: var(--danger); border-color: var(--danger); } .raid-card.editing .raid-edit-toggle { color: var(--gold); border-color: var(--gold); } diff --git a/includes/functions.php b/includes/functions.php index cfdac94..30f9670 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -115,6 +115,9 @@ function icon(string $name): string 'edit' => '', 'x' => '', 'move' => '', + 'archive' => '', + 'restore' => '', + 'trash' => '', ]; $path = $paths[$name] ?? ''; diff --git a/raids.php b/raids.php index dc53fcb..46f844b 100644 --- a/raids.php +++ b/raids.php @@ -171,20 +171,20 @@ include __DIR__ . '/includes/header.php'; - +
- +
- +