From d4c8d572512c20d892002d55574e996fba294c6a Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Sat, 17 Oct 2026 19:01:33 +0200 Subject: [PATCH] Gear-Planer: oeffentliche Builds der Klassenmeister mit Klassenfilter, "Meine Builds" als eigener Reiter und ein Guide je Build - Build-Liste mit Klassen-Kacheln (Rolle, Anzahl, Klassenmeister), Sortierung nach Aenderung, Gegenstandsstufe oder Name - Neues Recht gear.publish (Klassenmeister): eigene Sets oeffentlich stellen, wird bei der Main-Klasse angezeigt - Reiter "Guide": Schwierigkeit, Tags, Beschreibung, Staerken/Schwaechen, Skill-Setup mit Reihenfolge und Begruendung, Hotbar und Makro mit Erklaerung je Taste, Daevanion, Ausruestung und Tipps; [[Skillname]] wird zum Skill-Chip - Skill-Chips und -Kacheln zeigen die Info-Blase mit den Werten bei der geplanten Stufe Co-Authored-By: Claude Opus 5.5 --- assets/css/style.css | 196 ++++++++++ assets/js/gear-guide.js | 35 ++ datenschutz.php | 2 +- gear.php | 176 ++++++++- gear_action.php | 63 +++- includes/gear.php | 99 ++++- includes/gear_guide.php | 677 ++++++++++++++++++++++++++++++++++ includes/gear_skills_view.php | 2 +- includes/patchnotes.php | 14 + includes/permissions.php | 1 + includes/schema.php | 15 +- sql/schema.sql | 7 + 12 files changed, 1258 insertions(+), 29 deletions(-) create mode 100644 assets/js/gear-guide.js create mode 100644 includes/gear_guide.php diff --git a/assets/css/style.css b/assets/css/style.css index a879c8d..07cc6a6 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -6553,6 +6553,202 @@ strong.grade-common, strong.grade-rare, strong.grade-epic, strong.grade-unique, .gear-set-card-check input { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; } .gear-compare-bar { margin-top: 1rem; align-items: center; flex-wrap: wrap; } +/* Oeffentliche Builds: Klassen-Kacheln zum Filtern (angelehnt an die Klassenwahl bei wakayashi.gg) */ +.gear-view-tabs { margin-bottom: 1rem; } +.gear-class-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 0.6rem; margin-bottom: 1.25rem; } +.gear-class-tile { + display: flex; + flex-direction: column; + align-items: center; + gap: 0.3rem; + padding: 0.85rem 0.5rem 0.75rem; + border: 1px solid var(--border); + border-radius: 12px; + background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); + color: var(--text); + text-align: center; + transition: border-color 0.15s, background 0.15s, transform 0.15s; +} +.gear-class-tile:hover { border-color: rgba(201, 162, 39, 0.6); color: var(--text); text-decoration: none; transform: translateY(-2px); } +.gear-class-tile.is-selected { border-color: var(--gold); background: linear-gradient(180deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.05)); box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35), 0 6px 18px rgba(201, 162, 39, 0.12); } +.gear-class-tile.is-empty:not(.is-selected) { opacity: 0.55; } +.gear-class-tile-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, 0.3); } +.gear-class-tile-icon .class-badge { width: 44px; height: 44px; } +.gear-class-tile-icon .icon { width: 26px; height: 26px; color: var(--gold); } +.gear-class-tile-name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; } +.gear-class-tile.is-selected .gear-class-tile-name { color: var(--gold); } +.gear-class-tile-role { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.45rem; white-space: nowrap; border: 1px solid var(--border); border-radius: 999px; font-size: 0.72rem; color: var(--text-muted); } +.gear-role-pip { width: 7px; height: 7px; border-radius: 50%; background: #e0605c; } +.gear-role-pip.is-tank { background: #e8a23a; } +.gear-role-pip.is-support { background: #6cc070; } +.gear-class-tile-count { font-size: 0.75rem; color: var(--text-muted); } +.gear-class-tile-masters { font-size: 0.72rem; line-height: 1.25; color: var(--gold); overflow-wrap: anywhere; } +.gear-class-tile-masters .text-muted { font-style: italic; } +.gear-public-masters { margin: 0.2rem 0 0; font-size: 0.85rem; } +.gear-master-badge { border-color: rgba(201, 162, 39, 0.6); color: var(--gold); background: rgba(201, 162, 39, 0.12); } +.gear-public-head h2 .text-muted { font-size: 0.9rem; font-weight: 400; } +.gear-sort-form { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; } +.gear-sort-form label { margin: 0; color: var(--text-muted); font-size: 0.85rem; } +.gear-sort-form select { width: auto; } +.gear-set-card-public .gear-set-card-link { padding-right: 1rem; } +.gear-set-card-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--text-muted); } +@media (max-width: 600px) { + .gear-class-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; } + .gear-class-tile { gap: 0.15rem; padding: 0.55rem 0.25rem 0.5rem; border-radius: 10px; } + .gear-class-tile-icon { width: 38px; height: 38px; } + .gear-class-tile-icon .class-badge { width: 32px; height: 32px; } + .gear-class-tile-icon .icon { width: 20px; height: 20px; } + .gear-class-tile-name { font-size: 0.8rem; overflow-wrap: anywhere; } + .gear-class-tile .gear-class-tile-role { display: none; } + .gear-class-tile-count { font-size: 0.7rem; } + .gear-class-tile-masters { font-size: 0.66rem; } +} + +/* Guide zu einem Build (Reiter Guide, includes/gear_guide.php) - angelehnt an die Klassen-Guides bei wakayashi.gg */ +.gear-set-head { align-items: center; } +.gear-set-emblem { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; flex-shrink: 0; border: 1px solid rgba(201, 162, 39, 0.35); border-radius: 14px; background: radial-gradient(circle at 50% 35%, rgba(201, 162, 39, 0.18), rgba(0, 0, 0, 0.35)); } +.gear-set-emblem .class-badge { width: 52px; height: 52px; } +.gear-set-head .gear-set-title { flex: 1 1 260px; min-width: 0; } +.gear-set-subline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0 0 0.3rem; font-size: 0.9rem; } +.gear-set-class { font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem; } +.gear-guide-empty p { margin: 0 0 0.75rem; max-width: 760px; } +.gear-guide-intro { display: flex; flex-direction: column; gap: 1rem; } +.gear-guide-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; } +.gear-guide-chip { display: inline-flex; align-items: center; padding: 0.2rem 0.7rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, 0.04); font-size: 0.8rem; font-weight: 600; color: var(--text); } +.gear-guide-difficulty { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.72rem; } +.gear-guide-difficulty.is-leicht { border-color: rgba(108, 192, 112, 0.6); background: rgba(108, 192, 112, 0.16); color: #8fd893; } +.gear-guide-difficulty.is-mittel { border-color: rgba(232, 162, 58, 0.6); background: rgba(232, 162, 58, 0.16); color: #f0b660; } +.gear-guide-difficulty.is-schwer { border-color: rgba(224, 96, 92, 0.6); background: rgba(224, 96, 92, 0.16); color: #f08a86; } +.gear-guide-edit-button { margin-left: auto; } +.gear-guide-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0.75rem; } +.gear-guide-point-box { padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, 0.18); } +.gear-guide-point-box h4 { margin: 0 0 0.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; } +.gear-guide-point-box.is-strengths h4 { color: #8fd893; } +.gear-guide-point-box.is-weaknesses h4 { color: #f08a86; } +.gear-guide-point-box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; } +.gear-guide-point-box li { position: relative; padding-left: 1rem; } +.gear-guide-point-box li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; } +.gear-guide-point-box.is-strengths li::before { background: #6cc070; opacity: 1; } +.gear-guide-point-box.is-weaknesses li::before { background: #e0605c; opacity: 1; } +.gear-guide-point-box p { margin: 0; } +.gear-guide-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; margin-bottom: 1rem; } +.gear-guide-grid > .panel { margin-bottom: 0; } +.gear-guide-section h3 { margin: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; } +.gear-guide-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.9rem; } +.gear-guide-section-head a { font-size: 0.85rem; } +.gear-guide-skill-rows { display: flex; flex-direction: column; gap: 0.6rem; } +.gear-guide-skill-row { display: flex; align-items: flex-start; gap: 0.75rem; } +.gear-guide-level { flex-shrink: 0; min-width: 54px; margin-top: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 6px; background: rgba(201, 162, 39, 0.16); color: var(--gold); font-size: 0.75rem; font-weight: 700; text-align: center; } +.gear-guide-skill-row.is-stigma .gear-guide-level { background: rgba(160, 120, 230, 0.18); color: #c4a6f2; } +.gear-guide-skill-list { display: flex; flex-wrap: wrap; gap: 0.4rem; } +.gear-guide-skill { position: relative; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid rgba(201, 162, 39, 0.45); border-radius: 8px; background: rgba(0, 0, 0, 0.35); overflow: hidden; } +.gear-guide-skill-row.is-stigma .gear-guide-skill { border-color: rgba(160, 120, 230, 0.55); } +.gear-guide-skill img { width: 100%; height: 100%; object-fit: cover; } +.gear-guide-skill-initial { font-weight: 700; color: var(--text-muted); } +.gear-guide-skill-level { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 0; background: rgba(0, 0, 0, 0.72); font-size: 0.62rem; font-weight: 700; text-align: center; color: #fff; } +.gear-guide-section-head .gear-guide-legend { flex: 1 1 auto; font-size: 0.8rem; } +.gear-guide-skills { margin-bottom: 1rem; } +.gear-guide-skills-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; } +button.gear-guide-skill { padding: 0; cursor: pointer; font: inherit; color: inherit; transition: border-color 0.15s, transform 0.15s; overflow: visible; } +button.gear-guide-skill img { border-radius: 7px; } +button.gear-guide-skill .gear-guide-skill-level { border-radius: 0 0 7px 7px; } +button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY(-1px); } +.gear-guide-skill.is-active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.45); } +.gear-guide-skill.has-note::after { content: ''; position: absolute; left: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); } +.gear-guide-skill-order { position: absolute; top: -7px; right: -7px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: var(--gold); color: #1a1a1a; font-size: 0.68rem; font-weight: 700; box-shadow: 0 0 0 2px var(--bg-panel); } +.gear-guide-skill.is-static { cursor: default; flex-shrink: 0; } +.gear-guide-skill-details { display: flex; flex-direction: column; gap: 0.75rem; } +.gear-guide-skills.is-interactive [data-guide-hidden] { display: none; } +.gear-guide-skill-detail { padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, 0.22); } +.gear-guide-skill-detail-head { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.6rem; } +.gear-guide-skill-detail h4 { margin: 0 0 0.25rem; font-size: 1.05rem; } +.gear-guide-target { color: var(--gold); font-weight: 600; } +.gear-guide-skill-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.8rem; } +.gear-guide-kind { padding: 0.05rem 0.45rem; border-radius: 4px; background: rgba(255, 255, 255, 0.08); color: var(--text-muted); } +.gear-guide-priority { padding: 0.05rem 0.55rem; border-radius: 999px; background: rgba(201, 162, 39, 0.2); color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; } +.gear-guide-specs { margin: 0 0 0.6rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; } +.gear-guide-specs li { display: flex; align-items: baseline; gap: 0.45rem; padding: 0.35rem 0.6rem; border: 1px solid rgba(201, 162, 39, 0.3); border-radius: 6px; background: rgba(201, 162, 39, 0.06); } +.gear-guide-spec-no { min-width: 1.6rem; font-weight: 700; color: var(--gold); } +.gear-guide-why { padding: 0.6rem 0.75rem; border-left: 3px solid var(--gold); border-radius: 0; background: rgba(255, 255, 255, 0.03); font-size: 0.9rem; line-height: 1.55; } +.gear-guide-why strong { display: block; margin-bottom: 0.2rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold); } +.gear-guide-why p { margin: 0 0 0.5rem; } +.gear-guide-why p:last-child { margin-bottom: 0; } +.gear-guide-why-empty { margin: 0; font-size: 0.85rem; } +.gear-guide-hotbar { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; } +.gear-guide-hotbar li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem; border: 1px solid var(--border); border-radius: 8px; background: rgba(0, 0, 0, 0.18); } +.gear-guide-hotbar .gear-macro-key, .gear-guide-macro .gear-macro-key, .gear-guide-key-row .gear-macro-key { min-width: 30px; height: 30px; padding: 0 0.3rem; border: 1px solid var(--border); border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 0.85rem; } +.gear-guide-hotbar-icons { display: flex; gap: 0.25rem; } +.gear-guide-hotbar-icon { position: relative; display: flex; width: 34px; height: 34px; border: 1px solid rgba(201, 162, 39, 0.4); border-radius: 6px; overflow: hidden; background: rgba(0, 0, 0, 0.35); } +.gear-guide-hotbar-icon img { width: 100%; height: 100%; object-fit: cover; } +.gear-guide-hotbar-icon .gear-macro-initial { margin: auto; font-weight: 700; color: var(--text-muted); } +.gear-guide-hotbar-icon .gear-macro-lv { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.72); font-size: 0.55rem; font-weight: 700; text-align: center; color: #fff; } +.gear-guide-hotbar-note { font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; } +.gear-guide-subhead { margin: 1rem 0 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; } +.gear-guide-subhead .text-muted { text-transform: none; letter-spacing: 0; font-weight: 400; } +.gear-guide-macro { margin: 0; padding: 0; list-style: none; counter-reset: macro; display: flex; flex-direction: column; gap: 0.35rem; } +.gear-guide-macro li { counter-increment: macro; display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; } +.gear-guide-macro li::before { content: counter(macro); min-width: 1.2rem; color: var(--text-muted); font-size: 0.78rem; text-align: right; } +.gear-guide-macro-delay { margin-left: auto; font-size: 0.78rem; } +.gear-guide-note-row { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.6rem 0; border-bottom: 1px solid var(--border); } +.gear-guide-note-row:last-child { border-bottom: 0; } +.gear-guide-note-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; } +.gear-guide-note-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; } +.gear-guide-order { display: flex; flex-direction: row; align-items: center; gap: 0.4rem; margin: 0 0 0 auto; font-size: 0.8rem; color: var(--text-muted); } +.gear-guide-order input { width: 4.5rem; } +.gear-guide-key-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; } +.gear-guide-key-row textarea { min-height: 2.4rem; } +.gear-guide-skill-chip { display: inline-flex; align-items: center; gap: 0.3rem; margin: 0 0.1rem; padding: 0.05rem 0.5rem 0.05rem 0.15rem; border: 1px solid rgba(201, 162, 39, 0.45); border-radius: 999px; background: rgba(201, 162, 39, 0.1); color: var(--text); font-weight: 600; font-size: 0.9em; line-height: 1.5; white-space: nowrap; vertical-align: baseline; } +.gear-guide-skill-chip img { width: 1.35em; height: 1.35em; border-radius: 50%; object-fit: cover; } +.gear-guide-skill-chip.is-stigma { border-color: rgba(160, 120, 230, 0.55); background: rgba(160, 120, 230, 0.12); } +.gear-guide-chip-hint code { padding: 0.05rem 0.3rem; border-radius: 4px; background: rgba(255, 255, 255, 0.08); } +.gear-guide-daevanion { margin-bottom: 1rem; } +.gear-guide-dv-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.5rem; margin-bottom: 1rem; } +.gear-guide-dv-board { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, 0.2); opacity: 0.55; } +.gear-guide-dv-board.is-used { border-color: rgba(201, 162, 39, 0.5); background: rgba(201, 162, 39, 0.08); opacity: 1; } +.gear-guide-dv-board strong { font-size: 0.92rem; } +.gear-guide-dv-board span { color: var(--gold); font-weight: 700; font-size: 0.85rem; } +.gear-guide-dv-note { margin-bottom: 1rem; } +.gear-guide-dv-columns .gear-skills-kind { margin: 0.5rem 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); } +.gear-guide-gear-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 1rem; } +.gear-guide-gear-stat { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, 0.22); min-width: 0; } +.gear-guide-gear-stat-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.gear-guide-gear-stat strong { font-size: 1.2rem; white-space: nowrap; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; } +.gear-guide-gear-stat small { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; } +.gear-guide-gear-bar { display: block; height: 4px; margin-top: 0.2rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; } +.gear-guide-gear-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold); } +.gear-guide-gear-doll .gear-doll.gear-doll-mini { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0; } +.gear-guide-gear-doll .gear-doll-mini .gear-doll-slot { width: auto; height: auto; aspect-ratio: 1; border-radius: 8px; } +.gear-guide-gear-doll .gear-doll-silhouette { width: 46%; height: 46%; } +.gear-guide-gear-totals { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1rem; font-size: 0.85rem; } +.gear-guide-gear-totals li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid var(--border); } +.gear-guide-gear-totals span { color: var(--text-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.gear-guide-gear-totals strong { flex-shrink: 0; font-variant-numeric: tabular-nums; } +.gear-guide-gear-empty { margin: 1rem 0 0; font-size: 0.85rem; } +.gear-guide-tips { margin: 0.9rem 0 0; padding: 0; list-style: none; counter-reset: tip; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0.75rem; } +.gear-guide-tips li { counter-increment: tip; position: relative; padding: 0.85rem 1rem 0.85rem 3rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, 0.18); } +.gear-guide-tips li::before { content: counter(tip); position: absolute; left: 0.9rem; top: 0.8rem; display: flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--gold); color: #1a1a1a; font-size: 0.8rem; font-weight: 700; } +.gear-guide-tips strong { display: block; margin-bottom: 0.3rem; } +.gear-guide-form textarea { width: 100%; resize: vertical; } +.gear-guide-tip-row { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem; } +.gear-description-text { max-width: 900px; line-height: 1.6; overflow-wrap: anywhere; } +.gear-description-text p { margin: 0 0 0.75rem; } +.gear-description-text p:last-child { margin-bottom: 0; } +@media (max-width: 900px) { + .gear-guide-grid, .gear-guide-skills-layout { grid-template-columns: minmax(0, 1fr); } +} +@media (max-width: 600px) { + .gear-set-emblem { width: 52px; height: 52px; border-radius: 12px; } + .gear-set-emblem .class-badge { width: 40px; height: 40px; } + .gear-guide-skill { width: 42px; height: 42px; } + .gear-guide-level { min-width: 46px; margin-top: 0.55rem; } + .gear-guide-edit-button { margin-left: 0; } + .gear-guide-hotbar li { grid-template-columns: auto minmax(0, 1fr); } + .gear-guide-hotbar-note { grid-column: 1 / -1; } + .gear-guide-key-row { grid-template-columns: auto minmax(0, 1fr); } + .gear-guide-key-row textarea { grid-column: 1 / -1; } +} +.gear-set-card-description { font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; } + /* Ein Set */ .gear-set-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; } .gear-set-title h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.2rem; } diff --git a/assets/js/gear-guide.js b/assets/js/gear-guide.js new file mode 100644 index 0000000..62ccd56 --- /dev/null +++ b/assets/js/gear-guide.js @@ -0,0 +1,35 @@ +/** + * Gear-Planer, Reiter Guide (includes/gear_guide.php): ein Klick auf eine Skill-Kachel zeigt deren Details (Ziel-Stufe, + * Prioritaet, Spezialisierungen, Begruendung) im Feld daneben. Ohne JavaScript stehen alle Details untereinander. + */ +(function () { + 'use strict'; + + document.querySelectorAll('[data-guide-skills]').forEach(function (section) { + var tiles = section.querySelectorAll('[data-guide-skill]'); + var details = section.querySelectorAll('[data-guide-detail]'); + if (!tiles.length) return; + section.classList.add('is-interactive'); + + var show = function (id) { + details.forEach(function (detail) { + if (detail.getAttribute('data-guide-detail') === id) { + detail.removeAttribute('data-guide-hidden'); + } else { + detail.setAttribute('data-guide-hidden', ''); + } + }); + tiles.forEach(function (tile) { + var active = tile.getAttribute('data-guide-skill') === id; + tile.classList.toggle('is-active', active); + tile.setAttribute('aria-pressed', active ? 'true' : 'false'); + }); + }; + + tiles.forEach(function (tile) { + tile.addEventListener('click', function () { + show(tile.getAttribute('data-guide-skill')); + }); + }); + }); +})(); diff --git a/datenschutz.php b/datenschutz.php index 87e3a68..6f58b23 100644 --- a/datenschutz.php +++ b/datenschutz.php @@ -226,7 +226,7 @@ include __DIR__ . '/includes/header.php';

Im Mitgliederbereich verarbeiten wir, was du selbst einträgst oder was bei der Nutzung entsteht - je nach Funktion: