Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 67 additions & 1 deletion dashboard/static/dashboard.v2.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ th.sortable:focus-visible { outline: 2px solid var(--accent); outline-offset: -2
border: 1px solid var(--border);
border-radius: 12px;
padding: 1.25rem 1.4rem 1.6rem;
width: 100%; max-width: 960px;
width: 100%; max-width: 1120px;
max-height: 94vh; overflow-y: auto;
box-shadow: 0 12px 40px rgba(1, 4, 9, .5);
}

Expand Down Expand Up @@ -246,6 +247,71 @@ table.orders td { font-variant-numeric: tabular-nums; }

.foot { max-width: 1200px; margin: 2rem auto 0; color: var(--muted); font-size: .75rem; }

/* -- wallet drill-down analytics (charts + panels) ---------------------- */

.analytics { display: flex; flex-direction: column; }

.chart-wrap {
background: var(--panel-2); border: 1px solid var(--border);
border-radius: 8px; padding: .35rem; overflow: hidden;
}
.chart { width: 100%; }
.chart--lower { margin-top: .15rem; }

.chart-legend {
display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 0;
}
.chart-legend__item {
display: inline-flex; align-items: center; gap: .35rem;
background: var(--panel-2); color: var(--text);
border: 1px solid var(--border); border-radius: 999px;
padding: .2rem .6rem; font-size: .75rem; cursor: pointer;
}
.chart-legend__item:hover { border-color: var(--accent); }
.chart-legend__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chart-legend__item--off { opacity: .45; text-decoration: line-through; }
.chart-legend__swatch { width: .7rem; height: .7rem; border-radius: 2px;
display: inline-block; background: var(--muted); }

/* Per-series colours — must match the line colours in mountPerfChart(). */
.chart-legend__swatch--balance { background: #4a90d9; }
.chart-legend__swatch--realized { background: #26a69a; }
.chart-legend__swatch--unrealized { background: #f5a623; }
.chart-legend__swatch--fees { background: #c56be6; }
.chart-legend__item--balance { color: #4a90d9; }
.chart-legend__item--realized { color: #26a69a; }
.chart-legend__item--unrealized { color: #f5a623; }
.chart-legend__item--fees { color: #c56be6; }

.stat-strip {
display: grid; gap: .5rem;
grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.stat {
background: var(--panel-2); border: 1px solid var(--border);
border-radius: 8px; padding: .45rem .6rem;
display: flex; flex-direction: column; gap: .15rem;
}
.stat__label { color: var(--muted); font-size: .68rem;
text-transform: uppercase; letter-spacing: .03em; }
.stat__value { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .95rem; }

.strategy-panel {
display: grid; gap: .6rem;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.strategy-block {
background: var(--panel-2); border: 1px solid var(--border);
border-radius: 8px; padding: .55rem .7rem;
}
.strategy-block__title { margin: 0 0 .4rem; font-size: .78rem;
color: var(--accent); font-weight: 600; }
.kv { display: flex; flex-direction: column; gap: .25rem; }
.kv__row { display: flex; justify-content: space-between; gap: 1rem;
font-size: .82rem; }
.kv__k { color: var(--muted); }
.kv__v { font-variant-numeric: tabular-nums; text-align: right; }

@media (prefers-reduced-motion: reduce) {
* { animation: none !important; transition: none !important; }
}
Loading
Loading