From aec724c4d43c9a82f49e8ab705ad9b524298a4ab Mon Sep 17 00:00:00 2001 From: JoshBaneyCS Date: Wed, 30 Apr 2025 10:26:05 +0000 Subject: [PATCH] Update public/styles.css --- public/styles.css | 65 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 48 insertions(+), 17 deletions(-) diff --git a/public/styles.css b/public/styles.css index 4416c60..3ceea63 100644 --- a/public/styles.css +++ b/public/styles.css @@ -294,38 +294,69 @@ legend { .sortable.asc::after { content: '▲'; } .sortable.desc::after { content: '▼'; } -/* ─── Trends Chart & Table ─────────────────────────────────────────────────── */ -/* Spreadsheet-style Trends table */ -#trends-table-container { - max-height: 50vh; /* adjust as needed */ - overflow: auto; - border: 1px solid #ddd; +/* ─── TRENDS PAGE STYLES ──────────────────────────────────────────────────── */ +.page-container.trends { + display: flex; + flex-direction: column; + position: absolute; + top: 70px; left: 0; right: 0; bottom: 0; + overflow: hidden; +} +.page-container.trends h1 { + margin: 1rem; +} +.trends-controls { + display: flex; + align-items: center; + padding: 0 1rem; +} +#timeframe-slider { + flex: 1; +} +#timeframe-label { + margin-left: 1rem; + white-space: nowrap; +} +.trends-metrics { + padding: 0 1rem; margin-bottom: 1rem; } -#trends-table { +.chart-container { + flex: 2; + margin: 0 1rem 1rem; + position: relative; +} +.chart-container canvas { + width: 100% !important; + height: 100% !important; +} +.table-wrapper { + flex: 1; + margin: 0 1rem; + overflow: auto; + border: 1px solid #ddd; +} +.table-wrapper table { width: 100%; border-collapse: collapse; table-layout: fixed; } -#trends-table th, -#trends-table td { +.table-wrapper th, +.table-wrapper td { padding: 8px; text-align: center; - border-bottom: 1px solid #ddd; + border: 1px solid #ccc; } -#trends-table thead th { +.table-wrapper thead th { + background: #f2f2f2; position: sticky; top: 0; - background: #f2f2f2; - border-bottom: 2px solid #ccc; + z-index: 2; cursor: pointer; - user-select: none; } -/* zebra striping */ -#trends-table tbody tr:nth-child(even) { +.table-wrapper tbody tr:nth-child(even) { background: #fafafa; } -/* sort arrow indicators */ .sortable::after { content: '▲▼'; font-size: 0.6em;