From aab58d280f32f502de9c1b447f5dfdb04c818a7d Mon Sep 17 00:00:00 2001 From: Gregor Schulze Date: Thu, 26 Nov 2026 09:52:03 +0100 Subject: [PATCH 1/2] Verbessere die Lesbarkeit der Tabellen - Hebe Tabellenspalten von table.wt-table durch Akzentfarben besser voneinander ab - visuell getestet auf desktop und mobile add .prettierignore to .gitignore --- .gitignore | 1 + zeitarchiv/app/static/css/app.css | 6 ++++++ zeitarchiv/app/static/css/pages/wetterdashboard.css | 9 +++++++++ 3 files changed, 16 insertions(+) diff --git a/.gitignore b/.gitignore index b08ba96b..db625cf7 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ htmlcov/ *.log data/ */screenshots/ +.prettierignore diff --git a/zeitarchiv/app/static/css/app.css b/zeitarchiv/app/static/css/app.css index 73424a45..b578300c 100644 --- a/zeitarchiv/app/static/css/app.css +++ b/zeitarchiv/app/static/css/app.css @@ -179,6 +179,7 @@ --shadow:0 1px 2px rgba(0,0,0,.35); --tile-lift:0 8px 20px -6px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.045); --bg-shade:rgba(0,0,0,.30); + --accent-table-column: #e0e0e012 } } :root[data-color-mode="dark"]{ @@ -192,6 +193,7 @@ --shadow:0 1px 2px rgba(0,0,0,.35); --tile-lift:0 8px 20px -6px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.045); --bg-shade:rgba(0,0,0,.30); + --accent-table-column: #e0e0e012 } /* Optionales, an Home Assistants aktuelle Core-Tokens angelehntes Schema. @@ -225,6 +227,7 @@ --shadow:0 1px 2px rgba(0,0,0,.4); --tile-lift:0 8px 20px -6px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.045); --bg-shade:rgba(0,0,0,.30); + --accent-table-column: #e0e0e012 } } :root[data-color-scheme="home_assistant"][data-color-mode="dark"]{ @@ -240,6 +243,7 @@ --shadow:0 1px 2px rgba(0,0,0,.4); --tile-lift:0 8px 20px -6px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.045); --bg-shade:rgba(0,0,0,.30); + --accent-table-column: #e0e0e012 } /* Modernes, cleanes Schema: kühles Slate statt neutralem Zinc, ruhiges @@ -275,6 +279,7 @@ --shadow:0 1px 2px rgba(0,0,0,.38); --tile-lift:0 8px 20px -6px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.045); --bg-shade:rgba(0,0,0,.30); + --accent-table-column: #e0e0e012 } } :root[data-color-scheme="modern"][data-color-mode="dark"]{ @@ -290,6 +295,7 @@ --shadow:0 1px 2px rgba(0,0,0,.38); --tile-lift:0 8px 20px -6px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.045); --bg-shade:rgba(0,0,0,.30); + --accent-table-column: #e0e0e012 } :root[data-color-mode="light"]{color-scheme:light;} diff --git a/zeitarchiv/app/static/css/pages/wetterdashboard.css b/zeitarchiv/app/static/css/pages/wetterdashboard.css index f15189fb..99c471ee 100644 --- a/zeitarchiv/app/static/css/pages/wetterdashboard.css +++ b/zeitarchiv/app/static/css/pages/wetterdashboard.css @@ -553,6 +553,15 @@ /* Spaltenmenü der Vergleichstabelle: die einzelnen Jahre stehen abgesetzt unter den Zeiträumen. */ .wt-controls .menu-section-label.wt-vt-menu-sep{margin-top:6px;border-top:1px solid var(--border);padding-top:6px;} +/* Färbt in der Tabelle die Spalten 2, 3 sowie die beiden letzten Spalten mit der definierten Akzent-Hintergrundfarbe ein. */ +table.wt-table tr > :nth-child(2), table.wt-table tr > :nth-child(3), table.wt-table tr > :nth-last-child(2), table.wt-table tr > :last-child { + background-color: var(--accent-table-column); +} +/* Entfernt die Hintergrundfarbe der letzten Spalte in der Heat-Tabelle und setzt sie auf den Standardwert zurück. */ +table.wt-heat-table tr > :last-child { + background-color: unset; +} + /* Kacheln der Karte „Wetterlage“: drei Spalten, zwei Reihen (bei mehr Kacheln weitere Reihen). */ .wt-tiles-lage{--wt-cols:3;} .wt-tiles-lage .wt-tile-sub{white-space:pre-line;} From ba7ef8405896c2b3d8a22deb017fa3d6e494bb06 Mon Sep 17 00:00:00 2001 From: Gregor Schulze Date: Thu, 26 Nov 2026 15:25:47 +0100 Subject: [PATCH 2/2] Tabellenformatierung angepasst und lokale Git-Konfiguration bereinigt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -CSS-Klasse für die HTML-Tabelle spezifiziert -Vorhandenes Farbschema übernommen -Nicht mehr benötigte Variable entfernt .git/info/exclude lokal angepasst (nicht versioniert) --- .gitignore | 2 +- zeitarchiv/app/static/css/app.css | 6 ------ zeitarchiv/app/static/css/pages/wetterdashboard.css | 8 ++------ zeitarchiv/app/templates/_wetter_view.html | 2 +- 4 files changed, 4 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index db625cf7..f1f129ac 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,4 @@ htmlcov/ *.log data/ */screenshots/ -.prettierignore + diff --git a/zeitarchiv/app/static/css/app.css b/zeitarchiv/app/static/css/app.css index b578300c..73424a45 100644 --- a/zeitarchiv/app/static/css/app.css +++ b/zeitarchiv/app/static/css/app.css @@ -179,7 +179,6 @@ --shadow:0 1px 2px rgba(0,0,0,.35); --tile-lift:0 8px 20px -6px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.045); --bg-shade:rgba(0,0,0,.30); - --accent-table-column: #e0e0e012 } } :root[data-color-mode="dark"]{ @@ -193,7 +192,6 @@ --shadow:0 1px 2px rgba(0,0,0,.35); --tile-lift:0 8px 20px -6px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.045); --bg-shade:rgba(0,0,0,.30); - --accent-table-column: #e0e0e012 } /* Optionales, an Home Assistants aktuelle Core-Tokens angelehntes Schema. @@ -227,7 +225,6 @@ --shadow:0 1px 2px rgba(0,0,0,.4); --tile-lift:0 8px 20px -6px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.045); --bg-shade:rgba(0,0,0,.30); - --accent-table-column: #e0e0e012 } } :root[data-color-scheme="home_assistant"][data-color-mode="dark"]{ @@ -243,7 +240,6 @@ --shadow:0 1px 2px rgba(0,0,0,.4); --tile-lift:0 8px 20px -6px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.045); --bg-shade:rgba(0,0,0,.30); - --accent-table-column: #e0e0e012 } /* Modernes, cleanes Schema: kühles Slate statt neutralem Zinc, ruhiges @@ -279,7 +275,6 @@ --shadow:0 1px 2px rgba(0,0,0,.38); --tile-lift:0 8px 20px -6px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.045); --bg-shade:rgba(0,0,0,.30); - --accent-table-column: #e0e0e012 } } :root[data-color-scheme="modern"][data-color-mode="dark"]{ @@ -295,7 +290,6 @@ --shadow:0 1px 2px rgba(0,0,0,.38); --tile-lift:0 8px 20px -6px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.045); --bg-shade:rgba(0,0,0,.30); - --accent-table-column: #e0e0e012 } :root[data-color-mode="light"]{color-scheme:light;} diff --git a/zeitarchiv/app/static/css/pages/wetterdashboard.css b/zeitarchiv/app/static/css/pages/wetterdashboard.css index 99c471ee..d2d3db26 100644 --- a/zeitarchiv/app/static/css/pages/wetterdashboard.css +++ b/zeitarchiv/app/static/css/pages/wetterdashboard.css @@ -554,12 +554,8 @@ .wt-controls .menu-section-label.wt-vt-menu-sep{margin-top:6px;border-top:1px solid var(--border);padding-top:6px;} /* Färbt in der Tabelle die Spalten 2, 3 sowie die beiden letzten Spalten mit der definierten Akzent-Hintergrundfarbe ein. */ -table.wt-table tr > :nth-child(2), table.wt-table tr > :nth-child(3), table.wt-table tr > :nth-last-child(2), table.wt-table tr > :last-child { - background-color: var(--accent-table-column); -} -/* Entfernt die Hintergrundfarbe der letzten Spalte in der Heat-Tabelle und setzt sie auf den Standardwert zurück. */ -table.wt-heat-table tr > :last-child { - background-color: unset; +#wetter-root table.wt-climate-table tr > :nth-child(2), table.wt-climate-table tr > :nth-child(3), table.wt-climate-table tr > :nth-last-child(2), table.wt-climate-table tr > :last-child { + background:color-mix(in srgb, var(--accent-line) 5%, var(--surface)); } /* Kacheln der Karte „Wetterlage“: drei Spalten, zwei Reihen (bei mehr Kacheln weitere Reihen). */ diff --git a/zeitarchiv/app/templates/_wetter_view.html b/zeitarchiv/app/templates/_wetter_view.html index cffedc74..8ae9f890 100644 --- a/zeitarchiv/app/templates/_wetter_view.html +++ b/zeitarchiv/app/templates/_wetter_view.html @@ -69,7 +69,7 @@

-
{{ _("Lädt …") }}
+
{{ _("Lädt …") }}
{% endmacro %}