]> git.ardis.lu - static-encrypt/commitdiff
Apply same styling to output as to form
authorArdis Lu <ardisglu@gmail.com>
Sat, 3 Feb 2024 06:41:00 +0000 (22:41 -0800)
committerArdis Lu <ardisglu@gmail.com>
Sat, 3 Feb 2024 06:41:00 +0000 (22:41 -0800)
Ensures same spacing between output child elements and the rest of the form.

index.html

index aa1fc7ece86b989e293d979958f31dcddcfc5377..737d401950c3cd7635c75ef47bfc7ed4afa1ea34 100644 (file)
@@ -39,7 +39,7 @@
       align-self: start;
     }
 
-    form {
+    form, output {
       inline-size: min(100dvi - 16px, 720px);
       display: flex;
       flex-direction: column;
     import { decrypt } from '/decrypt.js';
 
     function setOutput(ciphertext) {
-      document.querySelector('#output').style.display = 'block';
+      document.querySelector('#output').style.setProperty('display', 'flex');
       document.querySelector('#ciphertext').textContent = ciphertext;
     }
 
This page took 0.034441 seconds and 4 git commands to generate.