EnergyVenom's picture
Patchwise Agent Studio: Oracle AI Agent Studio cycles
0d811c3 verified
Raw History Blame Contribute Delete
2.26 kB
/* The mouse follower (CursorFx.tsx). Fixed to the window, never takes clicks, trails the pointer with an expo ease. */
.pw-cursor { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; opacity: 0; will-change: transform;
transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s; }
.pw-cursor[data-show='true'] { opacity: 1; }
.pw-cursor[data-mode='text'] { opacity: 0; }
.pw-cursor-shape { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; box-sizing: border-box; border-radius: 50%;
background: var(--violet-strong); border: 1.5px solid transparent; display: grid; place-items: center; overflow: hidden; white-space: nowrap;
color: #fff; font: 700 0 / 1 var(--font);
transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1), height 0.3s cubic-bezier(0.23, 1, 0.32, 1), margin 0.3s cubic-bezier(0.23, 1, 0.32, 1),
background-color 0.2s, border-color 0.2s, transform 0.15s, font-size 0.15s; }
.pw-cursor[data-mode='link'] .pw-cursor-shape { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: transparent; border-color: var(--violet-strong); }
.pw-cursor[data-mode='button'] .pw-cursor-shape { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: transparent; border-color: var(--violet-strong); }
.pw-cursor[data-mode='row'] .pw-cursor-shape { width: 62px; height: 62px; margin: -31px 0 0 -31px; font-size: 11.5px; }
.pw-cursor[data-down='true'] .pw-cursor-shape { transform: scale(0.82); }
/* the magnet: primary buttons glide back when the pointer leaves */
.mantine-Button-root[data-variant='filled'] { transition: translate 0.45s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.15s, color 0.15s, box-shadow 0.15s; }
/* page titles rise in softly when a page opens */
html body .trio-head h1, html body .fpt-ws .rw-title b { animation: pw-rise 0.7s cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes pw-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
.pw-cursor { display: none; }
html body .trio-head h1, html body .fpt-ws .rw-title b { animation: none; }
.mantine-Button-root[data-variant='filled'] { transition: none; }
}