From 91008dfc8b5c38a6ea6c99d4b8569294fcaa4e9b Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Tue, 22 Sep 2026 11:24:42 +0200 Subject: [PATCH] Gear planner: equipment as an in-game style grid (two square slots per row, grade colors, enchant badge, slot silhouettes) Co-Authored-By: Claude Opus 5 --- assets/css/style.css | 74 +++++++++++++++++++++++++++++--------------- gear.php | 53 ++++++++++++++++++------------- includes/gear.php | 42 +++++++++++++++++++++++++ 3 files changed, 123 insertions(+), 46 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 370ab51..fa250f4 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -5527,34 +5527,58 @@ strong.grade-common, strong.grade-rare, strong.grade-epic, strong.grade-unique, .gear-set-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; } .gear-set-actions form { margin: 0; } .gear-compare-with select { width: auto; padding: 0.35rem 0.6rem; font-size: 0.85rem; } -.gear-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.5rem; align-items: start; } -.gear-layout.has-editor { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } -@media (max-width: 1100px) { .gear-layout.has-editor { grid-template-columns: 1fr; } } -.gear-group-title { margin: 1rem 0 0.5rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); } -.gear-group-title:first-child { margin-top: 0; } -.gear-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 0.5rem; } -.gear-slot { +.gear-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1.5rem; align-items: start; } +@media (max-width: 800px) { .gear-layout { grid-template-columns: 1fr; } } + +/* Ausruestung als Raster wie im Spiel: zwei quadratische Slots pro Reihe */ +.gear-slots-panel { padding: 1rem; } +.gear-doll { display: grid; grid-template-columns: repeat(2, 76px); gap: 8px; justify-content: center; } +.gear-doll-slot { + position: relative; display: flex; - gap: 0.65rem; align-items: center; - padding: 0.5rem 0.65rem; - border: 1px solid var(--border); - border-left: 3px solid var(--grade, var(--border)); - border-radius: 8px; - background: rgba(255, 255, 255, 0.025); - color: var(--text); - min-width: 0; - transition: background 0.15s, border-color 0.15s; + justify-content: center; + aspect-ratio: 1; + border: 1px solid rgba(255, 255, 255, 0.08); + border-radius: 6px; + background: linear-gradient(180deg, rgba(20, 22, 30, 0.9), rgba(12, 13, 18, 0.95)); + color: rgba(255, 255, 255, 0.16); + overflow: hidden; + transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; +} +.gear-doll-slot:hover { border-color: rgba(201, 162, 39, 0.6); color: rgba(255, 255, 255, 0.3); text-decoration: none; transform: translateY(-1px); } +/* Belegt: Hintergrund in der Farbe der Seltenheit (wie im Spiel gruen/blau/gold ...) */ +.gear-doll-slot.is-filled { + border-color: color-mix(in srgb, var(--grade) 55%, transparent); + background: + radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), transparent 65%), + linear-gradient(180deg, color-mix(in srgb, var(--grade) 14%, #121418), color-mix(in srgb, var(--grade) 42%, #121418)); +} +.gear-doll-slot.is-active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.45), 0 0 14px rgba(201, 162, 39, 0.35); } +.gear-doll-slot img { width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); } +.gear-doll-silhouette { width: 58%; height: 58%; } +.gear-doll-initial { font-size: 1.6rem; font-weight: 700; color: var(--grade); } +.gear-doll-enchant, .gear-doll-exceed { + position: absolute; + font-size: 0.78rem; + font-weight: 700; + line-height: 1; + color: #fff; + text-shadow: 0 0 3px #000, 0 1px 2px #000, 0 0 6px #000; +} +.gear-doll-enchant { right: 4px; bottom: 4px; } +.gear-doll-exceed { left: 4px; top: 4px; color: #ffd76b; } +/* Manasteine: Punkte unten links (gold = eingesetzt) */ +.gear-doll-stones { position: absolute; left: 4px; bottom: 5px; display: flex; gap: 2px; } +.gear-doll-stones i { width: 5px; height: 5px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); } +.gear-doll-stones i.is-set { background: var(--gold); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); } +.gear-doll-hint { margin: 0.75rem 0 0; font-size: 0.78rem; text-align: center; } +@media (max-width: 800px) { + .gear-doll { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 520px; margin: 0 auto; } +} +@media (max-width: 420px) { + .gear-doll { grid-template-columns: repeat(4, minmax(0, 1fr)); } } -.gear-slot:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; color: var(--text); } -.gear-slot.is-active { border-color: var(--gold); border-left-color: var(--grade, var(--gold)); background: rgba(201, 162, 39, 0.1); } -.gear-slot-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; } -/* Normale Schreibweise: in Grossbuchstaben wuerde der Browser aus "Füße" "FÜSSE" machen */ -.gear-slot-label { font-size: 0.76rem; letter-spacing: 0.02em; color: var(--text-muted); } -.gear-slot-name { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.gear-slot:not(.is-filled) .gear-slot-name { color: var(--text-muted); font-style: italic; } -.gear-slot.is-filled .gear-slot-name { color: var(--grade); } -.gear-slot-tags { font-size: 0.78rem; color: var(--text-muted); } .gear-side { display: flex; flex-direction: column; min-width: 0; } .gear-slot-editor h3, .gear-totals h3 { margin-top: 0; } diff --git a/gear.php b/gear.php index 99f5b64..78acec1 100644 --- a/gear.php +++ b/gear.php @@ -223,30 +223,41 @@ include __DIR__ . '/includes/header.php'; -
+
- -

-
- [$slotLabel, $slotGroup]): ?> - - - - - - - - + + - + + + +
+

+
-

@@ -390,9 +401,7 @@ include __DIR__ . '/includes/header.php';

Dieser Slot ist leer.

-
-

Werte gesamt

@@ -428,6 +437,8 @@ include __DIR__ . '/includes/header.php';

Einfache Summe aller Gegenstände - Klassen- und Charakterwerte, Set-Boni und Götterstein sind nicht enthalten.

+
+