Fix CSS variables: use daisyUI classes (bg-base-*, text-base-content/*) which wrap OKLCH values in proper oklch() function

This commit is contained in:
2026-07-03 13:03:59 +02:00
parent 5eb4cd340c
commit 24c5849f05
4 changed files with 43 additions and 48 deletions
@@ -1,25 +1,23 @@
{#if entries.isEmpty()}
<div style="background:#242830;border:1px solid #111316;border-radius:0.5rem;padding:3rem;text-align:center">
<p style="font-size:1.125rem;color:var(--bc);opacity:0.6">No releases found</p>
<p style="font-size:0.875rem;color:var(--bc);opacity:0.4;margin-top:0.5rem">Add artists to your collection to see their releases here</p>
<div class="card bg-base-100 shadow-xl p-12 text-center">
<p class="text-lg text-base-content/60">No releases found</p>
<p class="text-sm text-base-content/40 mt-2">Add artists to your collection to see their releases here</p>
</div>
{#else}
<div style="display:flex;flex-direction:column;gap:1.5rem">
<div class="flex flex-col gap-6">
{#for entry in entries}
<a href="https://musicbrainz.org/release-group/{entry.mbid}" target="_blank" rel="noopener noreferrer"
style="display:flex;text-decoration:none;background:#242830;border:1px solid #111316;border-radius:0.5rem;overflow:hidden;transition:background 0.15s"
onmouseover="this.style.background='#0d0f12'"
onmouseout="this.style.background='#242830'">
<div style="width:250px;height:250px;flex-shrink:0;overflow:hidden;background:#0d0f12">
class="card card-side bg-base-100 border border-base-300 hover:bg-base-200 transition-colors shadow-sm overflow-hidden">
<figure class="w-64">
<img src="https://coverartarchive.org/release-group/{entry.mbid}/front-250"
alt="{entry.title}" style="width:100%;height:100%;object-fit:cover;display:block"
alt="{entry.title}" class="object-cover w-full h-full"
loading="lazy"
onerror="this.parentElement.innerHTML='<div style=\'display:flex;align-items:center;justify-content:center;height:100%;color:var(--bc);opacity:0.15\'>No Cover</div>'">
</div>
<div style="padding:1rem 1.25rem;flex:1;display:flex;flex-direction:column;justify-content:center;min-width:0">
<div style="font-size:0.8rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;color:var(--bc);opacity:0.55;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">{entry.artistName}</div>
<div style="font-size:1.1rem;font-weight:700;color:var(--bc);line-height:1.35;margin-top:0.15rem">{entry.title}</div>
<div style="display:flex;align-items:center;gap:0.5rem;margin-top:0.5rem;flex-wrap:wrap">
onerror="this.parentElement.innerHTML='<div class=\'flex items-center justify-center h-full text-base-content/20\'>No Cover</div>'">
</figure>
<div class="card-body">
<h3 class="card-title text-sm text-base-content/60 uppercase tracking-wider">{entry.artistName}</h3>
<h2 class="text-lg font-semibold">{entry.title}</h2>
<div class="flex items-center gap-2 mt-2">
{#if entry.primaryType == 'Album'}
<span class="badge badge-primary badge-sm">Album</span>
{#else if entry.primaryType == 'Single'}
@@ -30,7 +28,7 @@
<span class="badge badge-ghost badge-sm">{entry.primaryType}</span>
{/if}
{#if entry.firstReleaseDate}
<span style="font-size:0.8rem;color:var(--bc);opacity:0.45">{entry.firstReleaseDate}</span>
<span class="text-sm text-base-content/40">{entry.firstReleaseDate}</span>
{/if}
</div>
</div>