Files
deepseek-harness/packages/client/ui-primitives/src/HoverCard.module.css
T
mektpoy fae37cd705 Merge remote-tracking branch 'origin/master' into fix/focus-ring-brand-primary
Conflicts and how they were resolved:

- ui-agent-preset/AgentPresetSection.module.css: master replaced the icon-only
  tooltip actions (`.iconButton`, `.iconDanger`, `.revealedPath`) with
  `.cardHelp` + `.helpButton`, which deleted the one declaration this branch
  edited. Took master's structure and re-applied the branch's change to the two
  `.cardMain:focus-visible` rings, which master kept unchanged.
- ui-theme/README.md and README.zh.md: master documented the separately exported
  `brand-font.css`; this branch documented `focus.css`. Kept both, with the
  dynamic entry's sheet list at seven sheets including `focus.css`.
  `README.i18n.yaml` re-recorded with `verify-translation-pairing --write`.
2026-09-22 20:37:05 +08:00

82 lines
1.8 KiB
CSS

/* Block, not inline-flex: consumers wrap full-width list rows and an
* inline wrapper would shrink them; the card still measures this rect. */
.root {
position: relative;
display: block;
}
/* Preview card (figma session hover card): 244 wide, r12, pad 12/16, the
* menu card's elevation. Surface is #2C2C2E in both themes (figma value,
* light/dark identical), so a component-level variable, not a theme token.
* Hit-testable on purpose: resting the pointer on the card holds it open
* (HoverCard's grace close), which a `pointer-events: none` card cannot do. */
.card {
--dsw-hovercard-bg: #2C2C2E;
position: fixed;
z-index: 100;
box-sizing: border-box;
width: 244px;
padding: 12px 16px;
border-radius: 12px;
background: var(--dsw-hovercard-bg);
box-shadow: var(--dsw-shadow-lv3);
}
.copyable {
cursor: pointer;
}
.copyable:focus-visible {
outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-brand-primary));
outline-offset: 2px;
}
.feedback {
display: flex;
align-items: center;
justify-content: center;
}
.copied {
color: #FFFFFF;
font-size: 14px;
line-height: 20px;
text-align: center;
}
.status {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.preview {
display: flex;
flex-direction: column;
padding: 0;
overflow: hidden;
border: 0;
border-radius: 12px;
background: var(--dsw-alias-bg-layer-1);
color: var(--dsw-alias-label-primary);
box-shadow: var(--dsw-elevation-panel);
opacity: 1;
transition: opacity var(--dsh-hover-preview-fade) linear;
}
@starting-style {
.preview { opacity: 0; }
}
.preview[data-closing] {
opacity: 0;
pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
.preview { transition: none; }
}