Update public/styles.css
This commit is contained in:
parent
01f0e3f717
commit
74afbbb574
@ -294,70 +294,49 @@ legend {
|
|||||||
.sortable.asc::after { content: '▲'; }
|
.sortable.asc::after { content: '▲'; }
|
||||||
.sortable.desc::after { content: '▼'; }
|
.sortable.desc::after { content: '▼'; }
|
||||||
|
|
||||||
/* ─── TRENDS PAGE ───────────────────────────────────────────────────────────── */
|
/* ─── Trends Chart & Table ─────────────────────────────────────────────────── */
|
||||||
|
|
||||||
/* page-container is already full-screen under header */
|
|
||||||
.page-container.trends {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
/* Controls row */
|
|
||||||
.trends-controls {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
#timeframe-slider {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
#timeframe-label {
|
|
||||||
margin-left: 1rem;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
/* Metric toggles */
|
|
||||||
.trends-metrics {
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
/* Chart area */
|
/* Chart area */
|
||||||
.chart-container {
|
#chart-container {
|
||||||
flex: 2;
|
height: 50vh;
|
||||||
position: relative;
|
width: 100%;
|
||||||
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
.chart-container canvas {
|
|
||||||
width: 100% !important;
|
/* Table wrapper: scrollable pane */
|
||||||
height: 100% !important;
|
#trends-table-container {
|
||||||
}
|
max-height: 40vh;
|
||||||
/* Table wrapper */
|
|
||||||
.table-wrapper {
|
|
||||||
flex: 1;
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
.table-wrapper table {
|
|
||||||
|
/* Spreadsheet-style table */
|
||||||
|
#trends-table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
}
|
}
|
||||||
.table-wrapper th,
|
#trends-table th,
|
||||||
.table-wrapper td {
|
#trends-table td {
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: 1px solid #ccc;
|
border-bottom: 1px solid #ddd;
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
}
|
}
|
||||||
.table-wrapper thead th {
|
#trends-table thead th {
|
||||||
background: #f2f2f2;
|
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 2;
|
background: #f2f2f2;
|
||||||
|
border-bottom: 2px solid #ccc;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
/* Zebra stripes */
|
/* Zebra striping */
|
||||||
.table-wrapper tbody tr:nth-child(even) {
|
#trends-table tbody tr:nth-child(even) {
|
||||||
background: #fafafa;
|
background: #fafafa;
|
||||||
}
|
}
|
||||||
/* Sort arrows */
|
/* Sort arrow indicators */
|
||||||
.sortable::after {
|
.sortable::after {
|
||||||
content: '▲▼';
|
content: '▲▼';
|
||||||
font-size: 0.6em;
|
font-size: 0.6em;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user