209 lines
4.6 KiB
CSS
209 lines
4.6 KiB
CSS
/* Chart and table rules extracted from styles.css */`r`n`r`n.chartsGrid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 12px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.chartBlock {
|
|
position: relative;
|
|
overflow: hidden;
|
|
min-width: 0;
|
|
padding: 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background:
|
|
radial-gradient(at 100% 0%, color-mix(in oklab, var(--primary) 7%, transparent), transparent 55%),
|
|
var(--surface-soft);
|
|
transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
|
|
}
|
|
|
|
.chartBlock::before {
|
|
position: absolute;
|
|
inset: 0 0 auto 0;
|
|
height: 1px;
|
|
content: "";
|
|
pointer-events: none;
|
|
background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 55%, transparent), color-mix(in oklab, var(--secondary) 55%, transparent), transparent);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.chartBlock:hover {
|
|
border-color: var(--primary-border);
|
|
box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 18%, transparent), 0 8px 22px -8px color-mix(in oklab, var(--primary) 28%, transparent);
|
|
}
|
|
|
|
.chartTitle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--text-strong);
|
|
font-family: "IBM Plex Mono", ui-monospace, monospace;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
line-height: var(--leading-snug);
|
|
}
|
|
|
|
.chartTitle::before {
|
|
width: 6px;
|
|
height: 6px;
|
|
flex: 0 0 6px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--primary), var(--secondary));
|
|
box-shadow: 0 0 6px color-mix(in oklab, var(--primary) 50%, transparent);
|
|
content: "";
|
|
}
|
|
|
|
.chart {
|
|
min-width: 0;
|
|
min-height: 76px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.chart svg {
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.timelineSvg {
|
|
display: block;
|
|
}
|
|
|
|
.timelineTip {
|
|
position: absolute;
|
|
z-index: 5;
|
|
display: grid;
|
|
gap: 6px;
|
|
min-width: 140px;
|
|
max-width: 200px;
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--surface);
|
|
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
|
|
color: var(--text);
|
|
font-size: var(--text-xs);
|
|
font-variant-numeric: tabular-nums;
|
|
pointer-events: none;
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
:root[data-theme="dark"] .timelineTip {
|
|
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
|
|
}
|
|
|
|
.timelineTipTime {
|
|
color: var(--muted);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
font-size: 12px;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.timelineTipBody {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
align-items: center;
|
|
gap: 4px 10px;
|
|
}
|
|
|
|
.timelineTipBody span {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.timelineTipBody b {
|
|
color: var(--text-strong);
|
|
font-weight: 600;
|
|
text-align: right;
|
|
}
|
|
|
|
.timelineDotMark {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.barRow {
|
|
display: grid;
|
|
grid-template-columns: minmax(78px, 0.9fr) minmax(80px, 2fr) 48px;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
min-height: 24px;
|
|
transition: opacity var(--motion-fast);
|
|
}
|
|
|
|
.barRow + .barRow {
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.barRow:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.chartBlock:hover .barRow:not(:hover) {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.barLabel {
|
|
min-width: 0;
|
|
color: var(--text);
|
|
font-size: var(--text-sm);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.barTrack {
|
|
position: relative;
|
|
height: 6px;
|
|
overflow: hidden;
|
|
border-radius: 99px;
|
|
background: var(--chart-track);
|
|
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04) inset;
|
|
}
|
|
|
|
.barFill {
|
|
position: relative;
|
|
height: 100%;
|
|
border-radius: 99px;
|
|
background: linear-gradient(90deg, var(--secondary), var(--primary));
|
|
box-shadow: 0 0 8px -1px color-mix(in oklab, var(--primary) 50%, transparent);
|
|
transition: width var(--motion-slow);
|
|
}
|
|
|
|
.barFill::after {
|
|
position: absolute;
|
|
inset: 0;
|
|
content: "";
|
|
border-radius: inherit;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
|
|
background-size: 50% 100%;
|
|
background-repeat: no-repeat;
|
|
background-position: -50% 0;
|
|
animation: barShimmer 2.4s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes barShimmer {
|
|
0% { background-position: -50% 0; }
|
|
60%, 100% { background-position: 150% 0; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.barFill::after { animation: none; opacity: 0; }
|
|
}
|
|
|
|
.barValue {
|
|
color: var(--muted);
|
|
font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
font-size: var(--text-sm);
|
|
font-variant-numeric: tabular-nums;
|
|
font-feature-settings: "ss01", "tnum";
|
|
text-align: right;
|
|
}
|