diff --git a/src/app.css b/src/app.css index 16cf153..51715fe 100644 --- a/src/app.css +++ b/src/app.css @@ -20,6 +20,11 @@ @apply rounded-lg border border-stein-200 bg-white shadow-sm; } + /* Shared card hover: lift + shadow + wald border, used by all clickable card/tile/list-row components */ + .card-hover-lift { + @apply transition-[transform,box-shadow,border-color] duration-200 hover:-translate-y-0.5 hover:border-wald-300 hover:shadow-md; + } + /* Diagonal strikethrough for past calendar days */ .day-past::after { content: ''; diff --git a/src/lib/components/Card.svelte b/src/lib/components/Card.svelte index 707aef3..9d0310d 100644 --- a/src/lib/components/Card.svelte +++ b/src/lib/components/Card.svelte @@ -44,7 +44,7 @@ variants: { variant: { callout: "cursor-pointer transition-colors no-underline text-inherit hover:bg-wald-100", - tile: "transition-[transform,box-shadow,border-color] duration-200 no-underline hover:-translate-y-0.5 hover:shadow-md hover:border-wald-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wald-500 focus-visible:ring-offset-2", + tile: "card-hover-lift no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wald-500 focus-visible:ring-offset-2", }, }, defaultVariants: { variant: "tile" }, diff --git a/src/lib/components/ContactCard.svelte b/src/lib/components/ContactCard.svelte index 2cbc5b2..ec4fb83 100644 --- a/src/lib/components/ContactCard.svelte +++ b/src/lib/components/ContactCard.svelte @@ -16,7 +16,7 @@
{contact.name ?? ""}
diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index f0c3ba0..fd5e917 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -145,26 +145,26 @@ {#each links as link} {@const active = isActiveTree(link, $page.url.pathname)} {#if link.children && link.children.length > 0} -