aboutsummaryrefslogtreecommitdiff
path: root/html/jspage.pl
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2022-10-17 22:34:54 +0100
committerBen Harris <bjh21@bjh21.me.uk>2022-10-17 23:16:31 +0100
commit49849e40ec2560fc22cf2da2a5f9be10c90f42bc (patch)
treea71452275f8c15f35ba7a4cd793ed9e1cb5f1e10 /html/jspage.pl
parentc90d64f2439cf4fc5ac07f0ace27100aad2b69be (diff)
downloadpuzzles-49849e40ec2560fc22cf2da2a5f9be10c90f42bc.zip
puzzles-49849e40ec2560fc22cf2da2a5f9be10c90f42bc.tar.gz
puzzles-49849e40ec2560fc22cf2da2a5f9be10c90f42bc.tar.bz2
puzzles-49849e40ec2560fc22cf2da2a5f9be10c90f42bc.tar.xz
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.
Diffstat (limited to 'html/jspage.pl')
-rwxr-xr-xhtml/jspage.pl3
1 files changed, 3 insertions, 0 deletions
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;
}