From d105d9cb5a0b7b59f6555a9782e9bb6c9d8d7037 Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Sat, 14 Feb 2026 11:58:20 +0100 Subject: [PATCH] feature: renamed and fixed style --- assets/style-course.css | 26 ++++++++++---------------- templates/html/brightspot.html | 2 +- templates/html/question.html | 19 +++++++++++-------- 3 files changed, 22 insertions(+), 25 deletions(-) diff --git a/assets/style-course.css b/assets/style-course.css index 59a0bd0..deaf658 100644 --- a/assets/style-course.css +++ b/assets/style-course.css @@ -36,28 +36,22 @@ margin: 1ex 1em 1.5ex 1em; } -.question.has-brightspot .question-text { - margin-right: 3em; +.question .question-brightspot { + float: right; + margin: 0 0 0.5ex 1em; } -.question .question-brightspot { - position: absolute; - top: 1ex; - right: 1ex; - line-height: 0; - text-decoration: none; - color: inherit; +.question .question-text::after { + content: ""; + display: block; + clear: right; } .question .question-brightspot-icon { - width: 2em; - height: 2em; + width: 1em; + height: 1em; display: block; -} - -.question .question-brightspot:focus-visible { - outline: 2px solid currentColor; - outline-offset: 2px; + margin-right: 0.35em; } .question .question-picture { max-width: 100%; diff --git a/templates/html/brightspot.html b/templates/html/brightspot.html index 328a52d..6667820 100644 --- a/templates/html/brightspot.html +++ b/templates/html/brightspot.html @@ -3,7 +3,7 @@ - Lichtblick: {{number}} + Lösungsweg: {{number}} {{content}} diff --git a/templates/html/question.html b/templates/html/question.html index b8e7a92..6871281 100644 --- a/templates/html/question.html +++ b/templates/html/question.html @@ -1,12 +1,15 @@
- {% if brightspot %} - - - - {% endif %} -
{{ number }}: {{ question }}
+
+ {% if brightspot %} + + + Lösungsweg + + {% endif %} + {{ number }}: {{ question }} +
{% if picture_question %}
{{ alt_text_question }}
{% endif %}