stocks / static /css /movers.css
user
python version
ee446e8
Raw History Blame Contribute Delete
6.17 kB
.movers-page {
display: flex;
flex-direction: column;
gap: var(--space-md);
padding: var(--space-md);
}
.movers-title {
margin: 0;
font-size: var(--page-title-size);
color: var(--text-primary);
}
.movers-subtitle {
margin: 0;
color: var(--text-muted);
}
.movers-controls {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: var(--space-sm);
}
.movers-field {
display: flex;
flex-direction: column;
gap: var(--space-xs);
color: var(--text-muted);
font-size: var(--font-sm);
}
.movers-status {
margin: 0 0 var(--space-xs);
color: var(--text-muted);
font-size: var(--font-sm);
}
.movers-results {
overflow-x: auto;
}
.movers-table {
/* Fixed layout: every column gets its share of the wrapper and the long
filings cell wraps inside its own column. With `auto` the columns grew
to fit their widest content and the table ran past the page, clipping
the right edge. */
table-layout: fixed;
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
/* A header that sorts has to look pressable, or nobody finds the feature. The
arrow reserves its space with a zero-width marker so the label does not shift
when the sort changes. */
.movers-table th.movers-sortable {
cursor: pointer;
user-select: none;
}
.movers-table th.movers-sortable:hover {
color: var(--text);
background: var(--overlay-2);
}
.movers-table th.movers-sortable:focus-visible {
outline: var(--space-2xs) solid var(--accent);
outline-offset: calc(var(--space-2xs) * -1);
}
.movers-sort-marker {
display: inline-block;
min-width: 10px;
font-size: 9px;
opacity: 0.85;
}
.movers-table th[aria-sort="ascending"],
.movers-table th[aria-sort="descending"] {
color: var(--text);
}
.movers-table th,
.movers-table td {
padding: var(--space-xs-plus) var(--space-sm);
text-align: left;
border-bottom: 1px solid var(--border);
}
/* Only the numbers stay on one line. A blanket nowrap here made the filings
cell an unbreakable run that ran past the table and clipped. */
.movers-table td.movers-num,
.movers-table th.movers-num,
.movers-table td.movers-symbol-cell {
white-space: nowrap;
}
.movers-table th {
color: var(--text-muted);
font-weight: 600;
font-size: var(--font-sm);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.movers-symbol {
color: var(--text-primary);
font-weight: 600;
}
.movers-num {
text-align: right;
font-variant-numeric: tabular-nums;
}
.movers-dim {
color: var(--text-muted);
}
.movers-num.up {
color: var(--positive);
}
.movers-num.down {
color: var(--negative);
}
.movers-num.flat {
color: var(--text-muted);
}
/* The cause pill is the point of the report, so it is the one cell with a
background; the filing text beside it carries the evidence in plain text so
a coloured pill alone never has to be trusted. */
.movers-cause {
display: inline-block;
padding: 1px var(--space-sm);
border-radius: 999px;
font-size: var(--font-sm);
border: 1px solid var(--border);
color: var(--text-secondary);
}
.movers-cause--offering {
border-color: var(--negative);
color: var(--negative);
}
.movers-cause--financing {
border-color: var(--warning-text);
color: var(--warning-text);
}
.movers-cause--debt-event {
border-color: var(--warning-text);
color: var(--warning-text);
}
.movers-cause--earnings {
border-color: var(--border);
color: var(--text-secondary);
}
.movers-cause--no-filing {
border-color: transparent;
color: var(--text-dim);
}
.movers-filings {
color: var(--text-muted);
font-size: var(--font-sm);
white-space: normal;
/* The filings cell is the only long text column, so it absorbs the slack
and wraps inside a bounded width instead of pushing the table past the
page and clipping at the right edge. */
/* A fixed layout gives the cell a share of the table but does not make an
unbreakable run of form names wrap inside it, so the last filing was cut
off at the right edge. `overflow-wrap: anywhere` lets the tokens break. */
overflow-wrap: anywhere;
}
/* With a fixed layout the numeric columns take their natural share and the
filing column gets the rest, wrapping as needed. */
.movers-table th.movers-col--filing {
width: 30%;
}
/* Numeric columns stay on one line and never take the wrapping slack. */
.movers-table th.movers-num,
.movers-table td.movers-num {
white-space: nowrap;
}
.movers-empty {
margin: 0;
color: var(--text-muted);
}
.movers-field--check {
flex-direction: row;
align-items: center;
gap: var(--space-xs-plus);
color: var(--text-secondary);
font-size: var(--font-sm);
padding-bottom: var(--space-xs);
}
/* A name diluting this session leads the table and is the one row a reader
can act on before the outcome is known, so it carries the only row tint. */
.movers-row--diluting {
background: color-mix(in srgb, var(--danger) 6%, transparent);
}
/* A split row is neither a dilution case nor a fade; it is a data event the
reader has to discount, so it is marked without competing with DILUTING. */
.movers-row--split {
background: var(--overlay-1);
}
.movers-flag--split {
background: var(--text-muted);
}
.movers-symbol-cell {
display: flex;
align-items: center;
gap: var(--space-xs-plus);
}
.movers-flag {
padding: 1px var(--space-xs-plus);
border-radius: 3px;
background: var(--negative);
color: var(--on-danger);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.06em;
}
/* Dilution severity. A 149% offering and a 5% top-up are the same kind of
fact and very different risks, so the number carries a colour. */
.movers-dilution {
font-variant-numeric: tabular-nums;
}
.movers-dilution--heavy {
color: var(--negative);
}
.movers-dilution--severe,
.movers-dilution--atm {
color: var(--on-danger);
background: var(--negative);
border-radius: 3px;
padding: 0 var(--space-xs);
font-weight: 700;
}