From dfb4ac3ec6158723f04d1a3304e365cc360b18e6 Mon Sep 17 00:00:00 2001 From: Lars Bonczek Date: Thu, 21 Nov 2024 12:52:24 +0100 Subject: [PATCH] fix margins when feedback is shown --- styles.css | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/styles.css b/styles.css index 282e115..4413ea5 100644 --- a/styles.css +++ b/styles.css @@ -39,27 +39,19 @@ padding: 0; width: 100%; height: 500px; + display: block; /* Remove space that is reserved below inline elements for descender characters (y, q, g). */ } -/* Make iframe body grow and shrink with page content. */ body.questionpy-iframe-body { - height: auto; + height: auto; /* Make iframe body grow and shrink with page content. */ + overflow-y: hidden; /* Prevent margin-collapse across bottom boundary. */ } -.questionpy-iframe-body .que { - margin: 0; -} - -.questionpy-iframe-body .que .content { - margin: 0; -} - -.questionpy-iframe-body .que .formulation { +body.questionpy-iframe-body .que .content { margin: 0; } /* Style package selection container */ - .qpy-tab-content { display: flex; flex-flow: column;