diff --git a/src/routes/layout.css b/src/routes/layout.css index 903fb9e..2c9892d 100644 --- a/src/routes/layout.css +++ b/src/routes/layout.css @@ -135,6 +135,30 @@ @apply inline-flex h-8 w-8 items-center justify-center rounded border; } + .chip-group { + @apply flex flex-wrap items-stretch border border-input rounded-md overflow-hidden bg-background w-fit h-fit; + } + + .chip-group legend { + @apply flex items-center px-3 py-1.5 text-sm font-semibold border-r border-input; + } + + .chip { + @apply relative inline-flex items-center px-4 py-2 border-r border-input last:border-r-0 bg-background cursor-pointer text-sm font-medium transition-colors hover:bg-muted/50; + } + + .chip input { + @apply appearance-none; + cursor: inherit; + } + + .chip:has(input:checked) { + @apply bg-primary text-primary-foreground; + } + + .chip input:checked + span { + @apply font-semibold; + } } @layer scn { diff --git a/src/routes/songs/+page.svelte b/src/routes/songs/+page.svelte index 4a74e19..1aae94b 100644 --- a/src/routes/songs/+page.svelte +++ b/src/routes/songs/+page.svelte @@ -119,22 +119,25 @@ /> -