From 47e351ff85b0f9105979e36aa337f8476d5c4745 Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Sun, 18 Oct 2026 20:51:26 +0200 Subject: [PATCH] Gear-Planer Guide: Skills in Texten wie Links im Fliesstext (Icon und Name ohne Kasten, Spezialisierung kursiv in Anfuehrungszeichen), mehr Zeilenabstand; Stigmen-Prioritaet aller Spielweisen untereinander, Umschalter nur noch fuer die passiven Skills Co-Authored-By: Claude Opus 5.5 --- assets/css/style.css | 26 +++++++++++------- includes/gear_guide.php | 60 ++++++++++++++++++++++++----------------- 2 files changed, 52 insertions(+), 34 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 8c37261..2f92870 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -6669,6 +6669,9 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY .gear-guide-prio [data-guide-style-off] { display: none; } .gear-guide-style-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 0.8rem; } .gear-guide-style-tabs[hidden] { display: none; } +.gear-guide-prio-stigma { margin-bottom: 0.6rem; } +.gear-guide-prio-head { margin: 0; color: #c4a6f2; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; } +.gear-guide-prio-stigma .gear-guide-skill-row + .gear-guide-skill-row { padding-top: 0.35rem; border-top: 1px dashed rgba(160, 120, 230, 0.25); } .gear-guide-style-tab { padding: 0.2rem 0.7rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--text-muted); font: inherit; font-weight: 600; cursor: pointer; } .gear-guide-style-tab:hover { color: var(--text); border-color: rgba(201, 162, 39, 0.5); } .gear-guide-style-tab.is-active { border-color: var(--gold); background: rgba(201, 162, 39, 0.18); color: var(--gold); } @@ -6790,14 +6793,19 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY .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); } -/* [[Skillname:2]]: Spezialisierung bzw. Stigma-Bonus mit Nummer und Text */ -.gear-guide-skill-chip.is-spec { max-width: 100%; white-space: normal; } -.gear-guide-spec-no { flex: none; min-width: 1.3em; padding: 0 0.3em; border-radius: 4px; background: rgba(201, 162, 39, 0.3); color: #f1d98a; font-size: 0.85em; text-align: center; } -.gear-guide-skill-chip.is-stigma .gear-guide-spec-no { background: rgba(160, 120, 230, 0.35); color: #e1d0ff; } -.gear-guide-spec-text { overflow: hidden; max-width: 24em; color: var(--text-muted); font-weight: 400; text-overflow: ellipsis; white-space: nowrap; } +/* Skills in Guide-Texten ([[Skillname]], includes/gear_guide.php): wie ein Link im Fliesstext - kleines Icon und Name in + Gold (Stigmen lila), ohne Kasten, damit die Zeilen gleichmaessig bleiben; beim Drueberfahren die Info-Blase */ +.gear-guide-skill-chip { display: inline; margin: 0; padding: 0; border: 0; background: none; color: #e3bd6e; font-weight: 600; white-space: nowrap; cursor: help; } +.gear-guide-skill-chip img { width: 1.2em; height: 1.2em; margin-right: 0.25em; border-radius: 3px; object-fit: cover; vertical-align: -0.22em; box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.45); } +.gear-guide-skill-chip:hover, .gear-guide-skill-chip:focus-visible { outline: none; text-decoration: underline; text-decoration-color: rgba(227, 189, 110, 0.55); text-underline-offset: 3px; } +.gear-guide-skill-chip.is-stigma { color: #c9adf5; } +.gear-guide-skill-chip.is-stigma img { box-shadow: 0 0 0 1px rgba(160, 120, 230, 0.6); } +/* [[Skillname:2]]: dazu die Nummer der Spezialisierung (Stigmen: des Bonus) und ihr Text in Anfuehrungszeichen */ +.gear-guide-spec-no { display: inline-block; margin: 0 0.3em 0 0.35em; padding: 0 0.35em; border-radius: 3px; background: rgba(201, 162, 39, 0.22); color: #f1d98a; font-size: 0.75em; font-weight: 700; line-height: 1.45; vertical-align: 0.1em; } +.gear-guide-skill-chip.is-stigma .gear-guide-spec-no { background: rgba(160, 120, 230, 0.28); color: #e1d0ff; } +.gear-guide-spec-text { color: var(--text-muted); font-weight: 400; font-style: italic; white-space: normal; } +.gear-guide-spec-text::before { content: '„'; } +.gear-guide-spec-text::after { content: '“'; } .gear-guide-order + .gear-guide-order { margin-left: 0; } .gear-guide-chip-hint code { padding: 0.05rem 0.3rem; border-radius: 4px; background: rgba(255, 255, 255, 0.08); } .gear-guide-stats { margin-bottom: 1rem; } @@ -6881,7 +6889,7 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY .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 { max-width: 900px; line-height: 1.75; 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) { diff --git a/includes/gear_guide.php b/includes/gear_guide.php index 1de16a1..f4d6e58 100644 --- a/includes/gear_guide.php +++ b/includes/gear_guide.php @@ -599,13 +599,6 @@ function gear_render_guide_tab(array $set, bool $isOwn, array $slots, array $pla $styles = $guide['styles']; $alts = gear_guide_alt_stigmas($set, $planned, $notes); $groups = gear_guide_skill_groups($planned, $notes, $styles, $alts); - // Spielweisen mit eigener Prioritaet (0 = allgemein) - mehr als eine: Umschalter ueber den Prioritaets-Reihen - $prioStyles = []; - foreach ($groups['prio'] as $byStyle) { - $prioStyles += array_fill_keys(array_keys($byStyle), true); - } - ksort($prioStyles); - $prioStyles = array_keys($prioStyles); $setUrl = '/gear.php?set=' . (int) $set['id']; $filled = count(array_filter($slots, static fn (array $row): bool => !empty($row['item']))); // Reihenfolge wie angezeigt (fuer die Details und den Bearbeiten-Dialog) @@ -724,28 +717,45 @@ function gear_render_guide_tab(array $set, bool $isOwn, array $slots, array $pla
- - + ' + . '' + . e(GEAR_GUIDE_PRIO_KINDS[$kind]) . '' . ($style > 0 ? e($styles[$style]) : 'Priorität') . '' + . '
'; + foreach ($prioEntries as $i => $entry) { + $html .= ($i > 0 ? '' : '') + . gear_guide_skill_tile($entry, $notes, (int) $entry['skill']['id'] === $activeId, $style); + } + return $html . '
'; + }; + $stigmaRows = $groups['prio']['stigma'] ?? []; + $passiveRows = $groups['prio']['passive'] ?? []; + ?> + +
+ 1): ?>

Stigmen je Spielweise

+ $prioEntries): ?> + + +
+ +
- 1): ?> -