Kurzinfo der Live-Daten als ein einziges klickbares Kaestchen statt "Details"-Link
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
eb86d62e61
commit
cd51e04ca9
2 changed files with 15 additions and 22 deletions
|
|
@ -5431,37 +5431,30 @@ a.member-card:hover { text-decoration: none; color: var(--text); }
|
||||||
|
|
||||||
/* Live-Daten aus Aion 2 (includes/armory.php): Kampfkraft an der Charakterkarte, Bereich "Aus dem Spiel" */
|
/* Live-Daten aus Aion 2 (includes/armory.php): Kampfkraft an der Charakterkarte, Bereich "Aus dem Spiel" */
|
||||||
.character-live {
|
.character-live {
|
||||||
display: flex;
|
display: inline-flex;
|
||||||
flex-wrap: wrap;
|
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
gap: 0.35rem;
|
max-width: 100%;
|
||||||
width: 100%;
|
|
||||||
margin: 0.6rem 0 0;
|
margin: 0.6rem 0 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0;
|
border: 1px solid rgba(201, 162, 39, 0.4);
|
||||||
background: none;
|
border-radius: 10px;
|
||||||
|
background: rgba(201, 162, 39, 0.06);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
overflow: hidden;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
|
||||||
}
|
}
|
||||||
.character-live:hover { background: none; box-shadow: none; color: var(--text); }
|
.character-live:hover { background: rgba(201, 162, 39, 0.14); border-color: var(--gold); color: var(--text); box-shadow: none; transform: translateY(-1px); }
|
||||||
.character-live-stat {
|
.character-live:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
|
||||||
display: flex;
|
.character-live-stat { display: flex; flex-direction: column; justify-content: center; padding: 0.3rem 0.7rem; line-height: 1.25; }
|
||||||
flex-direction: column;
|
.character-live-stat + .character-live-stat { border-left: 1px solid rgba(201, 162, 39, 0.25); }
|
||||||
padding: 0.25rem 0.6rem;
|
|
||||||
border: 1px solid rgba(201, 162, 39, 0.35);
|
|
||||||
border-radius: 8px;
|
|
||||||
background: rgba(201, 162, 39, 0.06);
|
|
||||||
line-height: 1.25;
|
|
||||||
}
|
|
||||||
.character-live-stat span { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
|
.character-live-stat span { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
|
||||||
.character-live-stat strong { font-size: 0.98rem; color: var(--gold); font-variant-numeric: tabular-nums; }
|
.character-live-stat strong { font-size: 0.98rem; color: var(--gold); font-variant-numeric: tabular-nums; }
|
||||||
.character-live-more { align-self: center; margin-left: 0.15rem; font-size: 0.82rem; color: var(--gold); white-space: nowrap; }
|
.character-live-arrow { display: flex; align-items: center; padding: 0 0.6rem 0 0.2rem; font-size: 1.3rem; color: var(--gold); }
|
||||||
.character-live:hover .character-live-stat { border-color: var(--gold); background: rgba(201, 162, 39, 0.12); }
|
.character-live-loading { padding: 0.45rem 0.7rem; font-size: 0.82rem; color: var(--text-muted); }
|
||||||
.character-live:hover .character-live-more { text-decoration: underline; }
|
|
||||||
.character-live:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
|
|
||||||
.character-live-loading { font-size: 0.82rem; color: var(--text-muted); }
|
|
||||||
.modal.modal-armory { max-width: 880px; padding: 1.5rem 1.6rem 1.1rem; }
|
.modal.modal-armory { max-width: 880px; padding: 1.5rem 1.6rem 1.1rem; }
|
||||||
.modal-armory .armory { padding: 0; }
|
.modal-armory .armory { padding: 0; }
|
||||||
.modal-armory .armory-head { padding-right: 2.5rem; }
|
.modal-armory .armory-head { padding-right: 2.5rem; }
|
||||||
|
|
|
||||||
|
|
@ -592,7 +592,7 @@ function armory_summary_html(array $character): string
|
||||||
foreach ($stats as [$label, $value, $exact]) {
|
foreach ($stats as [$label, $value, $exact]) {
|
||||||
$html .= '<span class="character-live-stat"><span>' . e($label) . '</span><strong' . ($exact !== '' ? ' title="' . e($exact) . '"' : '') . '>' . e($value) . '</strong></span>';
|
$html .= '<span class="character-live-stat"><span>' . e($label) . '</span><strong' . ($exact !== '' ? ' title="' . e($exact) . '"' : '') . '>' . e($value) . '</strong></span>';
|
||||||
}
|
}
|
||||||
return $html . '<span class="character-live-more">Details ›</span></button>';
|
return $html . '<span class="character-live-arrow" aria-hidden="true">›</span></button>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Popup mit den Live-Daten eines Charakters (geoeffnet ueber die Kurzinfo, assets/js/armory.js). */
|
/** Popup mit den Live-Daten eines Charakters (geoeffnet ueber die Kurzinfo, assets/js/armory.js). */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue