From 1b526901ca4852808bfe47aba982998d5b7341e6 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 11 Dec 2022 11:41:26 +0100 Subject: [PATCH] fix layout & stop using
--- index.html | 31 +++++++++++++++++-------------- style.css | 23 ++++++++++++++++------- 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/index.html b/index.html index c1ac17d..c08d462 100644 --- a/index.html +++ b/index.html @@ -7,20 +7,23 @@ - This is a demo of rendering reStructuredText (rST) to HTML entirely in the browser, - using Pyodide - to run docutils. - Source code on GitHub. - - - - - - - -
- - +

+ This is a demo of rendering reStructuredText (rST) to HTML entirely in the browser, + using Pyodide + to run docutils. + Source code on GitHub. +

+
+
+ + + +
+
+ + +
+
diff --git a/style.css b/style.css index 6881e13..bab9760 100644 --- a/style.css +++ b/style.css @@ -1,15 +1,24 @@ -form { +.form { margin: 1em 0.5em; - display: grid; - grid-template-columns: calc((100% - 1em) / 2) calc((100% - 1em) / 2); - column-gap: 1em; + display: flex; + flex-grow: 1; +} +.form div { + display: flex; + flex-direction: column; + flex-grow: 1; } textarea, iframe { border: 1px solid grey; border-radius: 3px; padding: 0.5em; margin: 0; - display: block; - box-sizing: border-box; - width: 100%; + flex-grow: 1; +} +html, body { + height: 100%; +} +body { + display: flex; + flex-direction: column; }