From d3240a75d0f237ded51a18ab072213b68f332e50 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Fri, 12 May 2023 11:56:50 +0200 Subject: [PATCH] fix: dupe style.css to Repl.css for some reason they were missing after update + darken line backgrounds + change preview port to keep workbox out of dev server --- packages/core/draw.mjs | 4 +- packages/react/src/components/style.css | 2 +- website/package.json | 2 +- website/src/components/HeadCommon.astro | 2 +- website/src/repl/Repl.css | 27 +++++++++++ website/src/repl/themes.mjs | 60 ++++++++++++------------- 6 files changed, 62 insertions(+), 35 deletions(-) diff --git a/packages/core/draw.mjs b/packages/core/draw.mjs index 1b5c87e7..f42e3220 100644 --- a/packages/core/draw.mjs +++ b/packages/core/draw.mjs @@ -1,6 +1,6 @@ /* draw.mjs - -Copyright (C) 2022 Strudel contributors - see +Copyright (C) 2022 Strudel contributors - see This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -13,7 +13,7 @@ export const getDrawContext = (id = 'test-canvas') => { canvas.id = id; canvas.width = window.innerWidth; canvas.height = window.innerHeight; - canvas.style = 'pointer-events:none;width:100%;height:100%;position:fixed;top:0;left:0;z-index:5'; + canvas.style = 'pointer-events:none;width:100%;height:100%;position:fixed;top:0;left:0'; document.body.prepend(canvas); } return canvas.getContext('2d'); diff --git a/packages/react/src/components/style.css b/packages/react/src/components/style.css index 150c9837..6d5d0805 100644 --- a/packages/react/src/components/style.css +++ b/packages/react/src/components/style.css @@ -1,6 +1,6 @@ :root { --background: #222; - --lineBackground: #22222250; + --lineBackground: #22222299; --foreground: #fff; --caret: #ffcc00; --selection: rgba(128, 203, 196, 0.5); diff --git a/website/package.json b/website/package.json index 3e15436f..6b8b7a6c 100644 --- a/website/package.json +++ b/website/package.json @@ -8,7 +8,7 @@ "start": "astro dev", "check": "astro check && tsc", "build": "astro build", - "preview": "astro preview", + "preview": "astro preview --port 3009", "astro": "astro" }, "dependencies": { diff --git a/website/src/components/HeadCommon.astro b/website/src/components/HeadCommon.astro index 9e81b0b8..23b39842 100644 --- a/website/src/components/HeadCommon.astro +++ b/website/src/components/HeadCommon.astro @@ -33,7 +33,7 @@ const base = BASE_URL;