From df1895bb91029a220bcfcbbeeb6ee1c707ca5734 Mon Sep 17 00:00:00 2001 From: Peter Meier Date: Thu, 4 Jun 2026 10:36:26 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20einheitliche=20.chip-Klasse=20f?= =?UTF-8?q?=C3=BCr=20Filter-Chips,=20.btn-outline.btn-sm=20f=C3=BCr=20Adre?= =?UTF-8?q?ssbuch-Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - app.css: neue .chip Utility (rounded-xs, border, text-[11px]) - AdressbuchBlock: Org-/Letter-Filter auf .chip, Action-Buttons auf .btn-outline.btn-sm - CalendarBlock: Tag-Filter auf .chip Co-Authored-By: Claude Sonnet 4.6 --- src/app.css | 6 ++++++ src/lib/components/blocks/AdressbuchBlock.svelte | 16 ++++++++-------- src/lib/components/blocks/CalendarBlock.svelte | 5 ++--- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/app.css b/src/app.css index e148973..672c292 100644 --- a/src/app.css +++ b/src/app.css @@ -396,6 +396,12 @@ main ol:not(.not-prose):where(:not(.not-prose *)) li { @apply px-2 py-1 text-xs gap-1; } +/* Filter-Chip — Basis für alle Filter-Chips (Kalender, Adressbuch, …). + Aktiv/inaktiv-Farben werden kontextuell per Klasse gesetzt. */ +.chip { + @apply inline-flex cursor-pointer items-center whitespace-nowrap rounded-xs border px-2 py-0.5 text-[11px] font-medium transition-colors; +} + /* Dekorativer Hintergrund mit zwei verschwommenen Verlaufs-Blobs (Wald → Erde). Nutzung: Container mit relativer Positionierung; Blobs sitzen in ::before/::after. Inhalt sollte z-Index >= 0 haben (Standard); Blobs liegen unter Stacking-Kontext. */ diff --git a/src/lib/components/blocks/AdressbuchBlock.svelte b/src/lib/components/blocks/AdressbuchBlock.svelte index ce2f27a..d93a597 100644 --- a/src/lib/components/blocks/AdressbuchBlock.svelte +++ b/src/lib/components/blocks/AdressbuchBlock.svelte @@ -82,18 +82,18 @@
{#each allOrgs() as [slug, name]} @@ -106,10 +106,10 @@