From 534f22b6321abaab942bf1422708ab5599cc9e2f Mon Sep 17 00:00:00 2001 From: xRangerDE Date: Mon, 11 May 2026 06:03:09 +0200 Subject: [PATCH] =?UTF-8?q?cleanup:=20extract=20.card-intro=20CSS=20class?= =?UTF-8?q?=20=E2=80=94=20kill=207=20duplicated=20inline=20styles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Seven settings/feature cards (Archive, API help, Storage, Cleanup, Discord, Auto-VOD, Backup) each carry an intro paragraph with the exact same inline style attribute: style="color: var(--text-secondary); font-size:13px; margin-bottom:12px; line-height:1.5;" That's the same 4-property declaration duplicated 7 times. Extracted into a single .card-intro class — HTML reads as semantic intent ("this is a card-intro paragraph") instead of repeated style soup, and any future tweak to intro-paragraph styling now lives in one place. (statsIntro is similar but uses margin-top:8px; margin-bottom:0; — different rhythm because it sits above the stats grid, left as-is.) Co-Authored-By: Claude Opus 4.7 (1M context) --- src/index.html | 14 +++++++------- src/styles.css | 11 +++++++++++ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/index.html b/src/index.html index cf894b1..728f8a3 100644 --- a/src/index.html +++ b/src/index.html @@ -454,7 +454,7 @@

Archiv durchsuchen

-

Suche nach Dateinamen, Streamern oder Datum-Strings. Treffer zeigen Recordings (Live + VOD); zugehoerige Chat- und Events-Dateien werden als Companion-Buttons angeboten.

+

Suche nach Dateinamen, Streamern oder Datum-Strings. Treffer zeigen Recordings (Live + VOD); zugehoerige Chat- und Events-Dateien werden als Companion-Buttons angeboten.

Auto-Cleanup aktivieren @@ -734,7 +734,7 @@

Discord-Webhook

-

Sende Benachrichtigungen an einen Discord-Channel via Webhook — nuetzlich fuer Multi-Device-Setups oder eine dedizierte Archiv-Maschine.

+

Sende Benachrichtigungen an einen Discord-Channel via Webhook — nuetzlich fuer Multi-Device-Setups oder eine dedizierte Archiv-Maschine.

@@ -761,7 +761,7 @@

Auto-VOD-Download

-

Streamer mit aktiviertem VOD-Toggle werden in dem hier festgelegten Intervall auf neue Twitch-VODs geprueft. Neue VODs innerhalb des Alters-Fensters werden automatisch zur Download-Queue hinzugefuegt.

+

Streamer mit aktiviertem VOD-Toggle werden in dem hier festgelegten Intervall auf neue Twitch-VODs geprueft. Neue VODs innerhalb des Alters-Fensters werden automatisch zur Download-Queue hinzugefuegt.

@@ -777,7 +777,7 @@

Sicherung & Wartung

-

Konfiguration sichern, auf einem anderen Geraet wiederherstellen, oder die Liste der bereits heruntergeladenen VODs zuruecksetzen.

+

Konfiguration sichern, auf einem anderen Geraet wiederherstellen, oder die Liste der bereits heruntergeladenen VODs zuruecksetzen.

diff --git a/src/styles.css b/src/styles.css index 2de7ea0..b602e3b 100644 --- a/src/styles.css +++ b/src/styles.css @@ -2131,6 +2131,17 @@ select option { line-height: 1.45; } +/* Card intro paragraph — the descriptive paragraph that sits below a + card heading and explains what the card does. Used identically on + the Archive, API-help, Storage, Cleanup, Discord, Auto-VOD and + Backup cards (was 7 duplicated inline style attributes). */ +.card-intro { + color: var(--text-secondary); + font-size: 13px; + line-height: 1.5; + margin-bottom: 12px; +} + /* Filename-templates 3-pair grid (VOD / Part / Clip template inputs). Each row is a label above an input; the label gets the 13px secondary styling that used to be inline on every label. */