1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-12 16:48:10 +00:00

css: override ui-dialog element inline styles, use percentage height on body

This commit is contained in:
Sotiri Bakagiannis 2021-07-15 19:48:38 +01:00
parent 9992bbde93
commit 636506e43e

View File

@ -1,7 +1,11 @@
html {
height: 100%;
}
body { body {
align-items: center; align-items: center;
display: flex; display: flex;
height: 100vh; height: 100%;
justify-content: center; justify-content: center;
margin: 0; margin: 0;
} }
@ -53,9 +57,11 @@ a:hover {
} }
.ui-dialog { .ui-dialog {
left: auto !important;
margin: auto; margin: auto;
max-width: 88vw; max-width: 88vw;
position: relative; position: relative;
top: auto !important;
} }
/* Don't display close button in the top right corner of the box */ /* Don't display close button in the top right corner of the box */