Files
marqdo-app-harness/packages/client/ui-primitives/src/StateDot.module.css
T
yx.zhang 7020c7e122 feat(web): superellipse corners and hairline elevation strokes
Apply global visual polish across the web client: corner-shape:
superellipse(1.5) with corner-shape: round pairing for full circles,
elevation tokens that draw 0.5px stroke outlines inside box-shadow for
floating surfaces, 0.5px hairline borders and divider lines for
neutral-token strokes, and tuned stroke contrast plus larger radii for
menus, settings panels, and cards. Stylesheet-scan specs in ui-theme
reject unpaired circles, border+shadow mixes, and 1px neutral hairlines
repo-wide.

Closes #3287
2026-09-01 18:25:20 +08:00

68 lines
1.6 KiB
CSS

/* Ongoing blue has no alias token (state-business-primary is the 500 step,
* not this 450) — component-level var pinned to the static scale instead. */
.dot,
.matrix {
--dsh-state-ongoing: var(--dsw-static-deepseek-450);
}
/* Solid states: same-color halo via a 0.10-opacity outer layer (::before)
* with a 6/10-scale solid core. Layer color rides currentColor set per state. */
.dot {
position: relative;
display: inline-block;
flex: none;
}
.dot::before {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
corner-shape: round;
background: currentColor;
opacity: 0.1;
}
.dot::after {
content: '';
position: absolute;
inset: 20%;
border-radius: 50%;
corner-shape: round;
background: currentColor;
}
.dot[data-state='done'] {
color: var(--dsw-alias-state-success-primary);
}
.dot[data-state='warning'] {
color: var(--dsw-alias-state-warn-primary);
}
.dot[data-state='error'] {
color: var(--dsw-alias-state-error-primary);
}
/* Pixel chase: each outer cell holds a discrete brightness step (flat keyframe
* holds, no tweening — the retro feel), peaking when the chase hits it and
* decaying over the next three cells. Phase offsets come from per-rect
* animation-delay (index * -125ms) set inline by the component. */
.matrix {
flex: none;
color: var(--dsh-state-ongoing);
}
.cell {
fill: currentColor;
opacity: 0.15;
animation: dsh-state-dot-chase 1s infinite;
}
@keyframes dsh-state-dot-chase {
0%, 12.4% { opacity: 1; }
12.5%, 24.9% { opacity: 0.6; }
25%, 37.4% { opacity: 0.35; }
37.5%, 100% { opacity: 0.15; }
}