X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/620fdcd04138557a402d3647c2f74f79957468b7..20ca68ae05fb47fc98efa06bb675df13d4c94de5:/word/editor.css diff --git a/word/editor.css b/word/editor.css index 4a848f5..88a4c49 100644 --- a/word/editor.css +++ b/word/editor.css @@ -49,20 +49,26 @@ select { .popup { display: flex; flex-wrap: wrap; - align-items: end; + justify-content: space-evenly; + gap: 1em; position: fixed; left: 0; top: 0; + max-width: 100%; + max-height: 100%; /* scroll */ margin: auto; - max-height: 90%; - max-width: 90%; overflow: auto; background: rgba(0, 0, 0, .8); border: 1px solid #CCC; + z-index: 1; } -img.popup { - height: 100%; /* max assuming landscape */ - width: auto; /* keep aspect */ +.popup img { + height: 20vh; + width: auto; +} +img { + max-width: 100%; + object-fit: contain; } h1 {