mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-09 04:02:35 +00:00
43 lines
1008 B
CSS
43 lines
1008 B
CSS
.bubble {
|
|
position: fixed;
|
|
z-index: 100;
|
|
/* Fixed-position shrink-to-fit measures only the space from `left` to the
|
|
viewport edge, so anchors near the right edge would wrap early;
|
|
max-content sizes by the label alone, capped at half the viewport. */
|
|
width: max-content;
|
|
max-width: 50vw;
|
|
padding: 3px 7px;
|
|
border-radius: 8px;
|
|
background: var(--dsw-alias-tooltip-bg);
|
|
color: var(--dsw-static-neutral-bluish-00);
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
white-space: pre-line;
|
|
/* Unbreakable tokens (URLs, paths) must not push past max-width. */
|
|
overflow-wrap: break-word;
|
|
pointer-events: none;
|
|
animation: tooltip-in 150ms var(--ds-ease-in-out);
|
|
}
|
|
|
|
.bubble[data-side='right'] {
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.bubble[data-side='bottom'] {
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.bubble[data-side='top'] {
|
|
transform: translate(-50%, -100%);
|
|
}
|
|
|
|
@keyframes tooltip-in {
|
|
from { opacity: 0; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.bubble {
|
|
animation: none;
|
|
}
|
|
}
|