From 77371fb3641d183547ad88c985861c7fc2841a91 Mon Sep 17 00:00:00 2001 From: Tim Grelka Date: Sun, 15 Feb 2026 13:17:27 +0100 Subject: [PATCH] fix: move button outside of question --- assets/style-course.css | 16 ++++----- templates/html/question.html | 68 +++++++++++++++++++----------------- 2 files changed, 41 insertions(+), 43 deletions(-) diff --git a/assets/style-course.css b/assets/style-course.css index f89075a..03b1830 100644 --- a/assets/style-course.css +++ b/assets/style-course.css @@ -36,23 +36,19 @@ margin: 1ex 1em 1.5ex 1em; } -.question .question-brightspot { - float: right; - margin: 0 0 0.5ex 1em; +.solution { + margin-top: -1.5em; + margin-bottom: 1em; + text-align: end; } -.question .question-text::after { - content: ""; - display: block; - clear: right; -} - -.question .question-brightspot-icon { +.solution .solution-icon { width: 1em; height: 1em; display: block; margin-right: 0.35em; } + .question .question-picture { max-width: 100%; margin-bottom: 1em; diff --git a/templates/html/question.html b/templates/html/question.html index 6871281..d92af5a 100644 --- a/templates/html/question.html +++ b/templates/html/question.html @@ -1,35 +1,37 @@ -
-
- {% if brightspot %} - - - Lösungsweg - - {% endif %} - {{ number }}: {{ question }} -
- {% if picture_question %} -
{{ alt_text_question }}
- {% endif %} -
- {% for i in range(4) %} - - {% endfor %} -
+
+
+ {{ number }}: {{ question }}
- + {% if picture_question %} +
{{ alt_text_question }}
+ {% endif %} +
+ {% for i in range(4) %} + + {% endfor %} +
+
+
+ {% if solution %} + + + Lösungsweg anzeigen + + {% endif %} +
+ \ No newline at end of file