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
This commit is contained in:
Felix Roos 2023-05-12 11:56:50 +02:00
parent d93e396ce5
commit d3240a75d0
6 changed files with 62 additions and 35 deletions

View file

@ -1,3 +1,15 @@
:root {
--background: #222;
--lineBackground: #22222299;
--foreground: #fff;
--caret: #ffcc00;
--selection: rgba(128, 203, 196, 0.5);
--selectionMatch: #036dd626;
--lineHighlight: #00000050;
--gutterBackground: transparent;
--gutterForeground: #8a919966;
}
.darken::before {
content: ' ';
position: fixed;
@ -22,3 +34,18 @@
#code .cm-line > * {
background: var(--lineBackground);
}
#code .cm-editor {
background-color: transparent !important;
height: 100%;
z-index: 11;
}
#code .cm-theme {
width: 100%;
height: 100%;
}
#code .cm-theme-light {
width: 100%;
}