From 49849e40ec2560fc22cf2da2a5f9be10c90f42bc Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 17 Oct 2022 22:34:54 +0100 Subject: js: Move dialogue-box sizing and positioning from JavaScript to CSS This has the advantage that if you resize the window while a dialogue box is active, the dialogue box adjusts itself accordingly. --- html/jspage.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'html') diff --git a/html/jspage.pl b/html/jspage.pl index 3a241e4..07ea719 100755 --- a/html/jspage.pl +++ b/html/jspage.pl @@ -225,12 +225,15 @@ EOF } #dlgform { + width: 66.6667vw; opacity: 1; background: #ffffff; color: #000000; position: absolute; border: 2px solid black; padding: 20px; + top: 10vh; + left: 16.6667vw; z-index: 100; } -- cgit v1.1