| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | /** |
| 2 | - * Desktop Mode — Window styles (entry point). | |
| 2 | + * OpenStation — Window styles (entry point). | |
| 3 | 3 | * |
| 4 | 4 | * The window stylesheet used to be 1,500 lines of chrome, states, |
| 5 | 5 | * overview, and OS Settings mixed together. It is now split into |
| 6 | 6 | * focused files so each concern lives on its own: |
| @@ -24,9 +24,9 @@ | ||
| 24 | 24 | * |
| 25 | 25 | * They used to be `@import url( … )`ed from this file, and that was a |
| 26 | 26 | * standing cache bug. An `@import` URL carries no `?ver=`, so when a |
| 27 | 27 | * sub-sheet changed there was no URL anywhere for the browser to |
| 28 | - * notice. `desktop_mode_css_subtree_version()` stamped THIS file with | |
| 28 | + * notice. `openstation_css_subtree_version()` stamped THIS file with | |
| 29 | 29 | * the max mtime of the whole subtree, which made the browser re-fetch |
| 30 | 30 | * and re-parse `windows.css` — and then request the sub-sheet at a |
| 31 | 31 | * completely unchanged URL, free to serve it from its heuristic |
| 32 | 32 | * cache. A parent's stamp can never invalidate its children. |
| @@ -43,9 +43,9 @@ | ||
| 43 | 43 | * → windows (this file) → window-overview → os-settings |
| 44 | 44 | * |
| 45 | 45 | * The last two sit AFTER this file and load **deferred** (the |
| 46 | 46 | * `media="print"` + onload swap driven by |
| 47 | - * `desktop_mode_deferred_styles`): the UI they style is lazy-loaded | |
| 47 | + * `openstation_deferred_styles`): the UI they style is lazy-loaded | |
| 48 | 48 | * JS that can never be on screen at first paint, so ~47 KB of CSS has |
| 49 | 49 | * no business blocking render. |
| 50 | 50 | * |
| 51 | 51 | * Rules in this file still win ties against the four critical |
| @@ -72,18 +72,18 @@ | ||
| 72 | 72 | * The cross-window pointer routing itself is driven from |
| 73 | 73 | * JavaScript by `src/drag/iframe-drop-targets.ts` — on drag |
| 74 | 74 | * START with a shortcut payload, every iframe element gets an |
| 75 | 75 | * inline `style.pointerEvents = 'none'` so pointer events fall |
| 76 | - * through to the iframe's parent (`.desktop-mode-window__body`), | |
| 76 | + * through to the iframe's parent (`.os-window__body`), | |
| 77 | 77 | * which is registered as the drop target. No CSS rule is needed |
| 78 | 78 | * to make the routing work — this stylesheet only paints the |
| 79 | 79 | * visual feedback for whichever window is currently the active |
| 80 | 80 | * drop target. |
| 81 | 81 | */ |
| 82 | -.desktop-mode-window__body[data-desktop-mode-iframe-drop-active] { | |
| 83 | - outline: 2px dashed var(--wpd-accent, #2271b1); | |
| 82 | +.os-window__body[data-os-iframe-drop-active] { | |
| 83 | + outline: 2px dashed var(--os-ui-accent, #2271b1); | |
| 84 | 84 | outline-offset: -6px; |
| 85 | - background: color-mix(in srgb, var(--wpd-accent, #2271b1) 8%, transparent); | |
| 85 | + background: color-mix(in srgb, var(--os-ui-accent, #2271b1) 8%, transparent); | |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /* |
| 89 | 89 | * Title-bar meta-button dashicon centring — same cache-busting |
| @@ -96,9 +96,9 @@ | ||
| 96 | 96 | * |
| 97 | 97 | * Also here for the old cache reason rather than a styling one — |
| 98 | 98 | * see the note above; it can move back to `window-chrome.css`. |
| 99 | 99 | */ |
| 100 | -.desktop-mode-window__meta-btn .dashicons { | |
| 100 | +.os-window__meta-btn .dashicons { | |
| 101 | 101 | display: inline-flex; |
| 102 | 102 | align-items: center; |
| 103 | 103 | justify-content: center; |
| 104 | 104 | line-height: 1; |