The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.
TypeScript code-editorcross-platformdapdatabase-clientdebuggerdesktop-appdeveloper-toolsgithttp-clientideintellijlsprusttauriterminal
fix(app): Load the splash CSS from a file so release editors keep their styles (#10)
l0ng-ai769c1248d639
diff --git a/index.html b/index.htmlindex 6cd9d5667..93777f8a2 100644--- a/index.html+++ b/index.html@@ -5,49 +5,7 @@<meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>OpenIDEA</title><script src="/boot.js"></script>- <style>- /* Start-up splash over the page until the window's launch project is open (platform/splash.ts).- Tokens aren't loaded yet, so the colours mirror --bg-frame / --fg-muted / --accent. */- html, body, .splash { background: #e9eaee; }- :root[data-theme="dark"] :is(body, .splash) { background: #26282c; }- :root:is([data-theme="dark-hc"], [data-theme="dark"][data-contrast="high"]) :is(body, .splash) { background: #1a1b1e; }- .splash {- position: fixed;- inset: 0;- z-index: 2147483647;- display: flex;- flex-direction: column;- align-items: center;- justify-content: center;- gap: 14px;- padding-bottom: 38px;- box-sizing: border-box;- font: 500 15px/1.2 "Inter Variable", Inter, system-ui, -apple-system, sans-serif;- color: #6c707e;- -webkit-user-select: none;- user-select: none;- cursor: default;- animation: splash-in 240ms ease-out 120ms both;- transition: opacity 160ms ease-out;- }- .splash.splash-out { opacity: 0; pointer-events: none; }- :root[data-theme^="dark"] .splash { color: #8c8f95; }- .splash svg { width: 56px; height: 56px; }- .splash-bar { width: 120px; height: 2px; border-radius: 1px; overflow: hidden; background: rgb(127 127 127 / 0.18); }- .splash-bar::after {- content: "";- display: block;- width: 40%;- height: 100%;- background: #3871e1;- animation: splash-bar 1.1s ease-in-out infinite;- }- @keyframes splash-in { from { opacity: 0; } }- @keyframes splash-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }- @media (prefers-reduced-motion: reduce) {- .splash, .splash-bar::after { animation: none; }- }- </style>+ <link rel="stylesheet" href="/splash.css" /></head><body><div id="root"></div>diff --git a/public/splash.css b/public/splash.cssnew file mode 100644index 000000000..fb6bec72b--- /dev/null+++ b/public/splash.css@@ -0,0 +1,43 @@+/* Linked, not inlined in index.html: release builds hash inline <style> blocks into the CSP,+ which voids style-src 'unsafe-inline' and blocks the editor's runtime-injected styles. */+/* Start-up splash over the page until the window's launch project is open (platform/splash.ts).+ Tokens aren't loaded yet, so the colours mirror --bg-frame / --fg-muted / --accent. */+html, body, .splash { background: #e9eaee; }+:root[data-theme="dark"] :is(body, .splash) { background: #26282c; }+:root:is([data-theme="dark-hc"], [data-theme="dark"][data-contrast="high"]) :is(body, .splash) { background: #1a1b1e; }+.splash {+ position: fixed;+ inset: 0;+ z-index: 2147483647;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: 14px;+ padding-bottom: 38px;+ box-sizing: border-box;+ font: 500 15px/1.2 "Inter Variable", Inter, system-ui, -apple-system, sans-serif;+ color: #6c707e;+ -webkit-user-select: none;+ user-select: none;+ cursor: default;+ animation: splash-in 240ms ease-out 120ms both;+ transition: opacity 160ms ease-out;+}+.splash.splash-out { opacity: 0; pointer-events: none; }+:root[data-theme^="dark"] .splash { color: #8c8f95; }+.splash svg { width: 56px; height: 56px; }+.splash-bar { width: 120px; height: 2px; border-radius: 1px; overflow: hidden; background: rgb(127 127 127 / 0.18); }+.splash-bar::after {+ content: "";+ display: block;+ width: 40%;+ height: 100%;+ background: #3871e1;+ animation: splash-bar 1.1s ease-in-out infinite;+}+@keyframes splash-in { from { opacity: 0; } }+@keyframes splash-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }+@media (prefers-reduced-motion: reduce) {+ .splash, .splash-bar::after { animation: none; }+}