diff --git a/src/app.css b/src/app.css index 4e9a5aa..be55aae 100644 --- a/src/app.css +++ b/src/app.css @@ -10,6 +10,32 @@ @import "tailwindcss"; +/* ========================================================================== + Component Utilities + ========================================================================== */ + +@layer components { + /* Shared card surface: border, background, shadow, radius */ + .card-surface { + @apply rounded-sm border border-stein-200 bg-white shadow-sm; + } + + /* Diagonal strikethrough for past calendar days */ + .day-past::after { + content: ''; + position: absolute; + inset: 2px; + background: linear-gradient( + to top right, + transparent calc(50% - 0.5px), + rgba(0, 0, 0, 0.12) calc(50% - 0.5px), + rgba(0, 0, 0, 0.12) calc(50% + 0.5px), + transparent calc(50% + 0.5px) + ); + pointer-events: none; + } +} + /* ========================================================================== Design Tokens – Windwiderstand (01-colors, 02-typography, 06-tokens.json) ========================================================================== */ diff --git a/src/lib/components/BlogOverview.svelte b/src/lib/components/BlogOverview.svelte index fdcc8c6..95c96f8 100644 --- a/src/lib/components/BlogOverview.svelte +++ b/src/lib/components/BlogOverview.svelte @@ -235,7 +235,7 @@ {#each filteredResults as hit} {#if hit.image}
{#each weekdays as w, i} +
{/if} diff --git a/src/lib/components/blocks/OrganisationsBlock.svelte b/src/lib/components/blocks/OrganisationsBlock.svelte index ae3c5fc..92b9fd2 100644 --- a/src/lib/components/blocks/OrganisationsBlock.svelte +++ b/src/lib/components/blocks/OrganisationsBlock.svelte @@ -64,12 +64,12 @@ {#snippet defaultCard(o: OrganisationEntry, linkUrl: string | undefined, logoField: ReturnType, orgIndex: number)} -
+
{#if logoField} {o.badge.label}
{/if} -
{o.name ?? ""}
+
{o.name ?? ""}
{#if o.description} -

{o.description}

+

{o.description}

{/if} {/snippet} @@ -140,7 +140,7 @@
{#each orgs as org, orgIndex} {#if typeof org === "object" && org !== null} diff --git a/src/lib/components/blocks/SearchableTextBlock.svelte b/src/lib/components/blocks/SearchableTextBlock.svelte index 7719abe..1c56a5b 100644 --- a/src/lib/components/blocks/SearchableTextBlock.svelte +++ b/src/lib/components/blocks/SearchableTextBlock.svelte @@ -193,7 +193,7 @@