| 1 |
/** |
| 2 |
* Desktop Mode — Window styles (entry point). |
| 3 |
* |
| 4 |
* The window stylesheet used to be 1,500 lines of chrome, states, |
| 5 |
* overview, and OS Settings mixed together. It now imports four |
| 6 |
* focused files so each concern lives on its own: |
| 7 |
* |
| 8 |
* - window-chrome.css — base window, title bar, icon, title, |
| 9 |
* controls, focused/unfocused variants, |
| 10 |
* menu panel, screen-meta buttons, tabs, |
| 11 |
* window body, primary iframe, native body. |
| 12 |
* - window-states.css — resize handle, drag/resize overlays, |
| 13 |
* maximized, fullscreen, opening animation, |
| 14 |
* minimized, closing, reduced-motion, RTL. |
| 15 |
* - window-overview.css — zoom-out overview grid + floating labels |
| 16 |
* + per-desktop top bar + dock-collapse. |
| 17 |
* - os-settings.css — the OS Settings native panel (wallpaper |
| 18 |
* picker, accent, dock size, uploader, |
| 19 |
* Media Library grid). Will move to its own |
| 20 |
* enqueue once it stops being coupled to the |
| 21 |
* window chrome loading order. |
| 22 |
* |
| 23 |
* The `desktop-mode-windows` script handle registers this file as its |
| 24 |
* CSS source, so all four sub-sheets ship with a single handle — no |
| 25 |
* changes required to `includes/assets.php` or `includes/render.php`. |
| 26 |
* |
| 27 |
* @since 6.9.0 |
| 28 |
*/ |
| 29 |
|
| 30 |
@import url( "window-chrome.css" ); |
| 31 |
@import url( "window-states.css" ); |
| 32 |
@import url( "window-overview.css" ); |
| 33 |
@import url( "os-settings.css" ); |
| 34 |
|
| 35 |
/* |
| 36 |
* Cross-window drag drop highlight — kept INLINE in this file |
| 37 |
* (not in any of the @import'd sub-sheets) so the mtime-stamped |
| 38 |
* `?ver=…` on `windows.css` reliably invalidates the rules along |
| 39 |
* with the parent stylesheet. Sub-sheets are fetched without an |
| 40 |
* explicit version query and can be served from the browser's |
| 41 |
* heuristic cache even after a hard reload. |
| 42 |
* |
| 43 |
* The cross-window pointer routing itself is driven from |
| 44 |
* JavaScript by `src/drag/iframe-drop-targets.ts` — on drag |
| 45 |
* START with a shortcut payload, every iframe element gets an |
| 46 |
* inline `style.pointerEvents = 'none'` so pointer events fall |
| 47 |
* through to the iframe's parent (`.desktop-mode-window__body`), |
| 48 |
* which is registered as the drop target. No CSS rule is needed |
| 49 |
* to make the routing work — this stylesheet only paints the |
| 50 |
* visual feedback for whichever window is currently the active |
| 51 |
* drop target. |
| 52 |
*/ |
| 53 |
.desktop-mode-window__body[data-desktop-mode-iframe-drop-active] { |
| 54 |
outline: 2px dashed var(--desktop-mode-accent, #2271b1); |
| 55 |
outline-offset: -6px; |
| 56 |
background: color-mix(in srgb, var(--desktop-mode-accent, #2271b1) 8%, transparent); |
| 57 |
} |
| 58 |
|