дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 17:21:13 +02:00
Sidebar buttons used a larger radius than the rest of the IDE, and their tooltips opened below the button, often over neighbouring stripe buttons. Stripe buttons now use a 6px radius, and their tooltips open toward the inside of the window, with a dark background in light themes. Siblings covered: every theme and plugin theme falls back to its base tooltip tokens, long tooltips flip correctly at the window edge, the shortcut hint stays readable, and the More button gets the same tooltip. Co-authored-by: PLZY <[email protected]>
54 рядки
1.5 KiB
CSS
54 рядки
1.5 KiB
CSS
/* HelpTooltip / ToolTip.*: feedback-bg surface with feedback-border; shortcut in secondary text. */
|
|
.tooltip {
|
|
position: fixed;
|
|
z-index: var(--z-tooltip);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
max-width: min(720px, calc(100vw - 32px));
|
|
padding: 6px 10px;
|
|
border-radius: var(--radius-tooltip, 6px);
|
|
background: var(--bg-tooltip);
|
|
border: 1px solid var(--border-tooltip, var(--border-popup));
|
|
box-shadow: var(--shadow-tooltip);
|
|
color: var(--fg-tooltip);
|
|
font-size: var(--fs-ui);
|
|
line-height: 16px;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
}
|
|
.tooltip[data-placed] {
|
|
opacity: 1;
|
|
transition: opacity var(--dur-fast) var(--ease);
|
|
}
|
|
/* Long paths wrap inside the bubble; the shortcut stays on one line. */
|
|
.text {
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.shortcut {
|
|
font-family: var(--font-keys);
|
|
font-size: var(--fs-ui);
|
|
color: color-mix(in srgb, var(--fg-tooltip) 62%, transparent);
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.stripe {
|
|
color: var(--fg-stripe-tooltip, var(--fg-tooltip));
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
background: var(--bg-stripe-tooltip, var(--bg-tooltip));
|
|
border-color: var(--border-stripe-tooltip, var(--border-tooltip));
|
|
box-shadow: var(--shadow-stripe-tooltip, var(--shadow-tooltip));
|
|
line-height: 18px;
|
|
}
|
|
.stripe .shortcut {
|
|
color: color-mix(in srgb, var(--fg-stripe-tooltip, var(--fg-tooltip)) 80%, transparent);
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.tooltip[data-placed] {
|
|
transition: none;
|
|
}
|
|
}
|