Custom floating tooltip replaces native SVG <title> — follows cursor, shows zone name in active locale (FR/EN), dark pill style with 120ms fade. getAnnotatedElement() helper added to svgConvention.ts. Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
1.0 KiB
CSS
32 lines
1.0 KiB
CSS
@import 'tailwindcss';
|
|
@import './tokens.css';
|
|
|
|
html, body, #root { height: 100%; }
|
|
body {
|
|
background: var(--color-bg);
|
|
color: var(--color-ink);
|
|
font-family: var(--font-sans);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
.svg-canvas [data-state='current'] { fill: var(--color-accent) !important; fill-opacity: 0.85 !important; }
|
|
.svg-canvas [data-state='linked'] { stroke-dasharray: 4 3; stroke: var(--color-accent); fill-opacity: 0.35 !important; }
|
|
.svg-canvas [data-state='multi'] { fill: var(--color-accent) !important; fill-opacity: 0.65 !important; stroke: var(--color-ink); stroke-width: 1.5; }
|
|
.svg-canvas [data-anno-id] { cursor: pointer; }
|
|
.svg-canvas [data-anno-id]:hover { filter: brightness(1.05); }
|
|
|
|
.zone-tooltip {
|
|
position: absolute;
|
|
pointer-events: none;
|
|
padding: 4px 10px;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
background: var(--color-ink);
|
|
color: var(--color-bg);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,.18);
|
|
transition: opacity 120ms ease;
|
|
z-index: 50;
|
|
}
|