world-game/src/styles/cursor.css
isUnknown b7d825b2f0 Feat: variables z-index + header au-dessus du menu
- style.css : plage z-index (--z-base, --z-content, --z-menu, --z-header, --z-cursor)
- Menu : show() au lieu de showModal() pour sortir du top-layer natif,
  Escape géré manuellement via keydown, z-index: var(--z-menu), position: fixed
- Header : z-index: var(--z-header) sur navbar, logo et toggle (toujours au-dessus du menu)
- Cursor/cursor.css : z-index: var(--z-cursor)
- Home : z-index: var(--z-content) sur home-text

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-19 13:59:19 +01:00

42 lines
715 B
CSS

/* Custom Cursor */
#cursor-dot,
#cursor-dot-outline,
#cursor-circle {
position: absolute;
top: 50%;
left: 50%;
z-index: var(--z-cursor);
transform: translate(-50%, -50%);
transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
border-radius: 50%;
pointer-events: none;
opacity: 0;
}
#cursor-dot {
width: 14px;
height: 14px;
background-color: white;
}
#cursor-circle {
width: 50px;
height: 50px;
border-width: 3px;
border-style: solid;
border-color: var(--color-primary);
}
#cursor-dot-outline {
width: 13px;
height: 13px;
background-color: white;
}
@media (pointer: coarse) {
#cursor-dot,
#cursor-dot-outline,
#cursor-circle {
display: none;
}
}