дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-28 21:42:27 +02:00
Extends the 4px-grid spacing scale with --space-0-5 (2px), --space-1 (4px) and --space-1-5 (6px) and replaces the literal 2/4/6/8/12/16px gap, row-gap and column-gap values with the tokens; computed values are unchanged. src/styles/spacingScale.test.ts flags an on-scale literal gap. Co-authored-by: Mr0Bread <[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: var(--space-2);
|
|
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;
|
|
}
|
|
}
|