stocks / static /css /3ds.css
user
python version
ee446e8
Raw History Blame Contribute Delete
3.77 kB
.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);
}
}