X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/8f91d2a391ec8c0b38a6f657cf3815143234d090..5d0bed0b1a591ba0f12526961a5d857d36df0267:/word/editor.css diff --git a/word/editor.css b/word/editor.css index c3717d5..88a4c49 100644 --- a/word/editor.css +++ b/word/editor.css @@ -5,7 +5,6 @@ dl { form > ul { display: table; - border-spacing: 0 2px; } form > ul > li { display: table-row; @@ -50,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 { @@ -75,7 +80,7 @@ h1 { margin: 0 -1ex; /* inner gap */ } .inline > * { - margin: 0 1ex; + margin: 1px 1ex; } .inline .inline { display: flex;