add online time and deaths to player card

This commit is contained in:
Johan Lundberg 2025-05-02 20:55:54 +02:00
parent 4a826e5ac2
commit b19568b1ab
3 changed files with 10 additions and 3 deletions

View file

@ -156,11 +156,12 @@ body {
#playerList li {
display: grid;
grid-template-columns: 1fr auto;
grid-template-rows: auto auto auto;
grid-template-rows: auto auto auto auto;
grid-template-areas:
"name loc"
"kills kph"
"rares meta";
"rares meta"
"onlinetime deaths";
gap: 4px 8px;
margin: 6px 0;
padding: 8px 10px;
@ -178,6 +179,8 @@ body {
.stat.kph { grid-area: kph; }
.stat.rares { grid-area: rares; }
.stat.meta { grid-area: meta; }
.stat.onlinetime { grid-area: onlinetime; }
.stat.deaths { grid-area: deaths; }
/* pill styling */
#playerList li .stat {
@ -198,6 +201,8 @@ body {
background: var(--accent);
color: #111;
}
.stat.onlinetime::before { content: "🕑 "}
.stat.deaths::before { content: "💀 "}
/* hover & selected states */
#playerList li:hover { background: var(--card-hov); }