From 8d82065220ac8f0a4540986deacaf3378e866a6a Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Sun, 20 Sep 2026 01:25:29 +0200 Subject: [PATCH] Premades: bigger class icons, distinct class-action design Member class icons were too small to read - bumped from 14px to 20px. The own-class action tile no longer reuses the angled member-card shape (clip-path border trick); it is now a plain rounded button with a gold dashed outline so it reads as an action, not another roster slot. Co-Authored-By: Claude Sonnet 5 --- assets/css/style.css | 28 +++++++++++++++++++--------- assets/js/premades.js | 2 +- premades.php | 30 ++++++++++++++---------------- 3 files changed, 34 insertions(+), 26 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 75426d1..f803241 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -841,21 +841,31 @@ input:focus, select:focus, textarea:focus { .premade-slot-invite-btn:hover { color: var(--gold); } /* Eigene Klassen-Aktion: sitzt als zusaetzliche Kachel im (bei 5 Slots stets - freien) 6. Grid-Feld neben der Mitgliederliste statt in einer der Karten. */ -.premade-slot-class-action:hover { background: var(--gold); } - -.premade-class-action-btn { + freien) 6. Grid-Feld neben der Mitgliederliste, bewusst mit gestricheltem + Rahmen statt der angeschraegten Karten-Optik, damit sie klar als Aktion + und nicht als weiterer Mitglieder-Slot erkennbar ist. */ +.premade-class-action { + display: flex; + align-items: center; + gap: 0.75rem; width: 100%; height: 100%; - border: none; - border-radius: 0; + min-height: 64px; + padding: 0.7rem 1rem; + background: rgba(201, 162, 39, 0.05); + border: 1.5px dashed rgba(201, 162, 39, 0.4); + border-radius: 10px; color: inherit; text-align: left; font: inherit; cursor: pointer; + transition: border-color 0.15s ease, background 0.15s ease; } -.premade-class-action-btn:hover { background: var(--bg-panel-alt); } +.premade-class-action:hover { + border-color: var(--gold); + background: rgba(201, 162, 39, 0.1); +} .premade-class-action-icon { color: var(--text-muted); } @@ -909,8 +919,8 @@ input:focus, select:focus, textarea:focus { } .premade-slot-class-icon { - width: 14px; - height: 14px; + width: 20px; + height: 20px; object-fit: contain; flex-shrink: 0; } diff --git a/assets/js/premades.js b/assets/js/premades.js index 890c21e..09537d1 100644 --- a/assets/js/premades.js +++ b/assets/js/premades.js @@ -50,7 +50,7 @@ wireModal(classModal); - document.querySelectorAll('.premade-class-action-btn').forEach(function (btn) { + document.querySelectorAll('.premade-class-action').forEach(function (btn) { btn.addEventListener('click', function () { classPremadeIdField.value = btn.getAttribute('data-premade-id') || ''; var currentClass = btn.getAttribute('data-current-class') || ''; diff --git a/premades.php b/premades.php index 9778765..24a0a14 100644 --- a/premades.php +++ b/premades.php @@ -255,22 +255,20 @@ include __DIR__ . '/includes/header.php'; -
- -
+