diff --git a/src/app.css b/src/app.css index 5db522b..7011d4e 100644 --- a/src/app.css +++ b/src/app.css @@ -411,3 +411,83 @@ textarea, input, [data-no-transition] { animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } + +/* === Window resize handles (see ResizeHandles.svelte) === + Lives in the global sheet so @tailwindcss/vite does not try to + parse it as a per-component virtual CSS module, which triggers an + "Invalid declaration" error on plain CSS inputs in some Tailwind v4 + + Svelte 5 combinations. */ +.kon-rh { + position: fixed; + z-index: 2147483646; + background: transparent; + pointer-events: auto; + touch-action: none; + user-select: none; + -webkit-user-select: none; +} + +.kon-rh-nw, +.kon-rh-ne, +.kon-rh-sw, +.kon-rh-se { + z-index: 2147483647; +} + +.kon-rh-n { + top: 0; + left: var(--kon-resize-corner); + right: var(--kon-resize-corner); + height: var(--kon-resize-edge); + cursor: n-resize; +} +.kon-rh-s { + bottom: 0; + left: var(--kon-resize-corner); + right: var(--kon-resize-corner); + height: var(--kon-resize-edge); + cursor: s-resize; +} +.kon-rh-w { + top: var(--kon-resize-corner); + bottom: var(--kon-resize-corner); + left: 0; + width: var(--kon-resize-edge); + cursor: w-resize; +} +.kon-rh-e { + top: var(--kon-resize-corner); + bottom: var(--kon-resize-corner); + right: 0; + width: var(--kon-resize-edge); + cursor: e-resize; +} + +.kon-rh-nw { + top: 0; + left: 0; + width: var(--kon-resize-corner); + height: var(--kon-resize-corner); + cursor: nw-resize; +} +.kon-rh-ne { + top: 0; + right: 0; + width: var(--kon-resize-corner); + height: var(--kon-resize-corner); + cursor: ne-resize; +} +.kon-rh-sw { + bottom: 0; + left: 0; + width: var(--kon-resize-corner); + height: var(--kon-resize-corner); + cursor: sw-resize; +} +.kon-rh-se { + bottom: 0; + right: 0; + width: var(--kon-resize-corner); + height: var(--kon-resize-corner); + cursor: se-resize; +} diff --git a/src/lib/components/ResizeHandles.svelte b/src/lib/components/ResizeHandles.svelte index e75c9bf..0ee6e58 100644 --- a/src/lib/components/ResizeHandles.svelte +++ b/src/lib/components/ResizeHandles.svelte @@ -44,98 +44,13 @@ {#if enabled} -
startResize(e,"North")}>
startResize(e,"South")}>
startResize(e,"West")}>
startResize(e,"East")}>
-
startResize(e,"NorthWest")}>
startResize(e,"NorthEast")}>
startResize(e,"SouthWest")}>
startResize(e,"SouthEast")}>
{/if} - -