From d65b022b33b500a65bbd835fe395a7da93db0f00 Mon Sep 17 00:00:00 2001 From: randogoth Date: Sun, 26 Oct 2025 17:58:16 +0200 Subject: [PATCH] centered and oclor --- scripts/dos-httpd | 90 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 79 insertions(+), 11 deletions(-) diff --git a/scripts/dos-httpd b/scripts/dos-httpd index 4434322..1205fc7 100644 --- a/scripts/dos-httpd +++ b/scripts/dos-httpd @@ -58,50 +58,67 @@ HTML_PAGE = """ } #workspace { flex: 1 1 auto; + position: relative; display: flex; justify-content: center; align-items: center; padding: 32px 24px 40px; box-sizing: border-box; } - #terminal { + #terminal-wrapper { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + transform-origin: center center; + } + #terminal-frame { display: inline-flex; background: #000; border: 1px solid #2b2b2b; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); padding: 12px; - width: auto; - height: auto; box-sizing: content-box; } + #terminal { + display: inline-block; + } #terminal .xterm { - width: auto !important; - height: auto !important; + width: 100% !important; + height: 100% !important; } #terminal .xterm-viewport { background-color: #000 !important; overflow: hidden !important; - width: auto !important; + width: 100% !important; } #terminal .xterm-rows, #terminal .xterm-scroll-area { - width: auto !important; - height: auto !important; + width: 100% !important; + height: 100% !important; } #terminal .xterm-screen { - width: auto !important; - height: auto !important; + width: 100% !important; + height: 100% !important; } #terminal .xterm .xterm-helper-textarea { width: 0 !important; height: 0 !important; } + #terminal .xterm .xterm-bg-0, + #terminal .xterm .xterm-bg-8 { + background-color: rgb(14 14 14) !important; + }
SvarBox DOS Console
-
+
+
+
+
+