From 9b1a4da3344db10dc73085a26be2f317671c142a Mon Sep 17 00:00:00 2001 From: Ginger <75683114+gingershaped@users.noreply.github.com> Date: Mon, 16 Sep 2024 14:52:27 -0400 Subject: [PATCH] Fix the styling, again --- src/latest/scripts/Editor.tsx | 2 +- src/latest/scripts/Theseus.tsx | 148 ++++++++++++++++----------------- src/latest/style.scss | 16 ++++ 3 files changed, 90 insertions(+), 76 deletions(-) diff --git a/src/latest/scripts/Editor.tsx b/src/latest/scripts/Editor.tsx index c868830..78a40f0 100644 --- a/src/latest/scripts/Editor.tsx +++ b/src/latest/scripts/Editor.tsx @@ -37,7 +37,7 @@ const EXTENSIONS = [ "&": { height: "100%" }, "&.cm-focused": { outline: "none" }, ".cm-scroller": {overflow: "auto"}, - ".cm-panels": {"z-index": "0 !important"}, + ".cm-tooltip": {"z-index": "300 !important"}, }), ]; const util = new UtilWorker(); diff --git a/src/latest/scripts/Theseus.tsx b/src/latest/scripts/Theseus.tsx index 37c9598..fdee22a 100644 --- a/src/latest/scripts/Theseus.tsx +++ b/src/latest/scripts/Theseus.tsx @@ -167,81 +167,79 @@ function Theseus() { } }} inputs={inputs} setShowFlagsDialog={setShowFlagsDialog} setShowSettingsDialog={setShowSettingsDialog} setShowShareDialog={setShowShareDialog} setShowInputDialog={setShowInputDialog} setShowElementOffcanvas={setShowElementOffcanvas} /> - - - - - - Loading... - - - } - > - - Header - - - - {bytecount} - {literate ? ( - - literate to sbcs - - ) : null} - - - - Footer - - - - - - - - Terminal - - - HTML - - - runnerRef.current?.getOutput() ?? ""} /> - - - - - - - Loading... - - - } - > - i.value)} - timeout={timeout != null ? timeout * 1000 : null} - onStart={() => setState("running")} - onFinish={() => setState("idle")} - /> - - - - - - - - - - + + + + + Loading... + + + } + > + + Header + + + + {bytecount} + {literate ? ( + + literate to sbcs + + ) : null} + + + + Footer + + + + + + + + Terminal + + + HTML + + + runnerRef.current?.getOutput() ?? ""} /> + + + + + + + Loading... + + + } + > + i.value)} + timeout={timeout != null ? timeout * 1000 : null} + onStart={() => setState("running")} + onFinish={() => setState("idle")} + /> + + + + + + + + + >; } diff --git a/src/latest/style.scss b/src/latest/style.scss index 4753422..6610478 100644 --- a/src/latest/style.scss +++ b/src/latest/style.scss @@ -16,6 +16,22 @@ $theme-colors: map-merge($theme-colors, $custom-colors); @import "~bootstrap/scss/mixins"; @import "~bootstrap/scss/utilities"; +main { + display: flex; + flex-direction: row; + @include media-breakpoint-down(md) { + flex-direction: column; + > div { + height: 50%; + } + } + > div { + flex-basis: 50%; + } + width: 100%; + height: 100%; +} + code.code-pill { border-radius: $border-radius-sm; background-color: shade-color($code-color, 80%);