diff --git a/.gitignore b/.gitignore index 92ec27c..eb3d73b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ .DS_Store venv/ flask_app/venv/ +__pycache__/ +.pycache/ +*.py[cod] diff --git a/flask_app/app.py b/flask_app/app.py index ccfb4a4..a5b8f97 100644 --- a/flask_app/app.py +++ b/flask_app/app.py @@ -205,6 +205,37 @@ STYLE = """ color: #fff; } + details.hint { + margin-top: 1rem; + } + + details.hint summary { + display: inline-block; + padding: 0.82rem 1.6rem; + color: #fff; + background: rgba(255, 255, 255, 0.14); + font-size: 0.82rem; + font-weight: 500; + letter-spacing: 0.12em; + text-transform: uppercase; + cursor: pointer; + list-style: none; + transition: background 0.2s, transform 0.15s; + } + + details.hint summary::-webkit-details-marker { + display: none; + } + + details.hint summary:hover { + background: #0057c2; + transform: translateY(-2px); + } + + details.hint p { + margin-top: 0.9rem; + } + ol { padding-left: 1.4rem; } @@ -364,6 +395,13 @@ def raum(raum_id): html += "

" + escape(r["beschreibung"]) + "

" html += '
' html += '

' + escape(r["raetsel_frage"]) + "

" + if raum_id == "nordkurve": + html += ( + '
' + 'Hinweis' + '

Erwins Schild zeigt kein zufälliges Fanplakat, sondern das Vereinsmotto.

' + '
' + ) html += '' html += '' html += ""