Spaces:
Running
Running
File size: 3,774 Bytes
ee446e8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | .three-ds-page {
display: flex;
flex-direction: column;
gap: var(--space-md);
/* The chart column wants width, so the page runs to the app shell's own
100rem cap instead of the narrow reading measure it used to carry; the
table's three short columns still do not stretch across an ultra-wide
display. */
max-width: 100rem;
}
.three-ds-header {
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.three-ds-title {
margin: 0;
font-size: var(--page-title-size);
color: var(--text-primary);
}
.three-ds-subtitle,
.three-ds-status {
margin: 0;
font-size: var(--font-sm);
color: var(--text-muted);
}
.three-ds-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
align-items: start;
gap: var(--space-md);
}
.three-ds-table-panel {
max-height: 70vh;
padding: 0;
overflow: auto;
}
.three-ds-table {
width: 100%;
}
.three-ds-symbol {
padding: 0;
border: 0;
background: none;
color: var(--accent);
font: inherit;
cursor: pointer;
}
.three-ds-symbol:hover {
text-decoration: underline;
}
.three-ds-date {
color: var(--text-secondary);
}
/* The row is the click target (the ticker button stays for keyboard), so the
whole row reads as clickable and the charted row keeps an accent mark. */
.three-ds-table tbody tr[data-ticker] {
cursor: pointer;
}
.three-ds-table tbody tr[data-ticker].is-selected td,
.three-ds-table tbody tr[data-ticker].is-selected:hover td {
background: color-mix(in srgb, var(--accent) 12%, transparent);
box-shadow: inset var(--radius-sm) 0 0 var(--accent);
}
.three-ds-chart-panel {
position: sticky;
top: var(--space-md);
display: flex;
flex-direction: column;
gap: var(--space-sm);
padding: var(--space-md);
}
/* The card is a `fill` card, so it only grows if its host carries an explicit
(not min-) height; without one it resolves to its own 240px canvas and the
chart reads as a strip. Viewport-based so the chart tracks the window. */
.three-ds-chart-host {
height: clamp(var(--chart-height-default), 68vh, 860px);
}
/* Tablets and narrower: one column, the chart panel follows the table. */
@media (width <= 900px) {
.three-ds-layout {
grid-template-columns: minmax(0, 1fr);
}
.three-ds-chart-panel {
position: static;
}
}
/* Portrait tablets: the full-width column leaves room, so the table keeps
most of the viewport. */
@media (width > 600px) and (width <= 900px) {
.three-ds-table-panel {
max-height: 55vh;
}
}
@media (width <= 600px) {
.three-ds-page {
gap: var(--space-sm);
}
.three-ds-title {
font-size: var(--page-title-size);
}
.three-ds-subtitle,
.three-ds-status {
font-size: var(--font-sm);
}
.three-ds-table-panel {
max-height: 40vh;
}
.three-ds-table th,
.three-ds-table td {
padding: var(--space-xs) var(--space-sm);
}
/* The chart card draws its own frame; drop the outer one on phones so
the chart gets the width instead of a second border and padding. */
.three-ds-chart-panel {
padding: 0;
background: none;
border: 0;
box-shadow: none;
}
}
/* Phone: each ticker is a 36px target; the rows stay compact. */
@media (width <= 600px) {
.three-ds-symbol {
min-height: var(--touch-target-size);
display: inline-flex;
align-items: center;
}
}
/* A ticker is content-wide (a three-letter symbol is 19-27px), and the audit's
floor is on both axes for a button, so the phone target gets the 28px width. */
@media (width <= 480px) {
.three-ds-symbol {
min-width: var(--touch-floor);
}
}
|