Home-Button oben links auf allen Seiten + ÖPNV-Control einklappbar + Mobile-Anpassungen
User-Requests:
1. Legendenmenü auf Mobile war außerhalb des Displays -> jetzt
eingeklappt (nur Header) auf beiden Map-Files. Body scrollbar
bei Bedarf.
2. ÖPNV-Control soll auch klappbar sein -> gleiche Einklapp-Logik
wie Legende auf tourenplan-mit-tram.html.
3. Home-Button oben links auf jeder Seite -> alle 9 HTML-Files
(index ausgenommen weil es die Startseite ist) haben jetzt einen
🏠 Startseite Button fixed-position oben links.
Mobile-Optimierungen (max-width: 768px):
- Home-Button + Theme-Toggle kleiner (10px margin statt 16px,
padding 8x12 statt 10x16)
- Leaflet-Controls kleinere Margins
- Legende + ÖPNV-Control max-width 180px (von 220px)
- topleft-Control margin-top 56px damit es unter dem Home-Button
sitzt statt ihn zu überdecken
Auch im jga_wetter_update.py (für Cron-generierte wetter.html):
- CSS-Variablen statt hardcoded Farben
- home-btn CSS + Mobile-Override
- Home-Button HTML-Injection in get_body()
This commit is contained in:
+29
-1
@@ -63,7 +63,34 @@
|
||||
.back-link { display: inline-block; margin-bottom: 16px; color: var(--accent-text); text-decoration: none; font-size: 14px; }
|
||||
.back-link:hover { text-decoration: underline; }
|
||||
|
||||
.theme-toggle {
|
||||
.home-btn {
|
||||
position: fixed;
|
||||
top: 16px; left: 16px;
|
||||
z-index: 1000;
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--card-border);
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
padding: 10px 16px;
|
||||
border-radius: 22px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
|
||||
transition: all 0.2s;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.home-btn { top: 10px; left: 10px; padding: 8px 12px; font-size: 13px; }
|
||||
.theme-toggle { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 18px; }
|
||||
}
|
||||
.home-btn:hover {
|
||||
transform: translateX(-2px);
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
.theme-toggle {
|
||||
position: fixed;
|
||||
top: 16px; right: 16px;
|
||||
width: 44px; height: 44px;
|
||||
@@ -373,6 +400,7 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<a href="index.html" class="home-btn" title="Zurück zur Startseite">🏠 Startseite</a>
|
||||
<button class="theme-toggle" id="themeToggle" aria-label="Theme wechseln">🌙</button>
|
||||
|
||||
<div class="container">
|
||||
|
||||
Reference in New Issue
Block a user