feat: redesign expanded row with detail-grid + history chart (#7)
This commit is contained in:
+87
-2
@@ -364,14 +364,99 @@ tr:last-child td {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@keyframes expandIn {
|
||||
from { opacity: 0; transform: translateY(-4px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.expanded-content.is-open {
|
||||
animation: expandIn 0.2s ease;
|
||||
}
|
||||
|
||||
.expanded-content td {
|
||||
padding: 0;
|
||||
background: var(--surface-2);
|
||||
background: color-mix(in oklab, var(--accent) 4%, var(--paper-2));
|
||||
border-top: 2px solid var(--accent);
|
||||
}
|
||||
|
||||
.expanded-cell {
|
||||
padding: 20px !important;
|
||||
padding: 22px 28px 28px !important;
|
||||
}
|
||||
|
||||
tr.row-open {
|
||||
box-shadow: inset 3px 0 0 var(--accent);
|
||||
}
|
||||
|
||||
/* ── Expanded Row Detail Grid ─────────────────── */
|
||||
|
||||
.player-detail {
|
||||
display: grid;
|
||||
grid-template-columns: 240px 1fr;
|
||||
gap: 28px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
@media (max-width: 880px) {
|
||||
.player-detail {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.detail-grid > div {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
gap: 12px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px dashed var(--line);
|
||||
}
|
||||
|
||||
.detail-grid > div:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.detail-grid dt {
|
||||
color: var(--ink-2);
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.detail-grid dd {
|
||||
color: var(--ink);
|
||||
font-size: 13px;
|
||||
font-family: var(--font-mono);
|
||||
font-feature-settings: "tnum", "zero";
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.player-chart {
|
||||
width: 100%;
|
||||
max-width: 880px;
|
||||
}
|
||||
|
||||
.link-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
font-family: var(--font-sans);
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.link-btn:disabled {
|
||||
color: var(--ink-3);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* ── Links ────────────────────────────────────── */
|
||||
|
||||
Reference in New Issue
Block a user