From 7d351a5e870bbd66ea5777c50f971378df7becba Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 15 Mar 2022 13:47:54 -0700 Subject: [PATCH] Give content_body padding instead of margin. Two reasons: - Whether the header is present or not, the content body will have some padding at the top of the screen. - When the content body is long, it will naturally pad itself from the bottom of the screen. Previously it would scrape the bottom edge. --- frontends/etiquette_flask/static/css/common.css | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/frontends/etiquette_flask/static/css/common.css b/frontends/etiquette_flask/static/css/common.css index 5695d10..2441e1b 100644 --- a/frontends/etiquette_flask/static/css/common.css +++ b/frontends/etiquette_flask/static/css/common.css @@ -96,6 +96,7 @@ pre height: 18px; margin: 8px; + margin-bottom: 0; background-color: var(--color_transparency); } #header button @@ -122,14 +123,7 @@ pre grid-auto-rows: min-content; grid-gap: 8px; - margin: 8px; -} -#header:not(.hidden) + #content_body -{ - /* - The header already has a margin. - */ - margin-top: 0; + padding: 8px; } .panel