add transparency for themes

This commit is contained in:
JCEEE
2026-09-10 19:07:57 +01:00
parent a5e3b80ff6
commit 486f239fb1
3 changed files with 12 additions and 2 deletions
+8
View File
@@ -52,6 +52,14 @@
.card.has-accent {
border-top: 3px solid var(--card-accent, #6366f1);
}
/* Background pattern active (has-pattern on the layout root): cards go
translucent so the pattern shows through. Desktop/tablet only — mobile
cards are already fully transparent. */
@media (min-width: 640px) {
:global(.has-pattern) .card {
background: #ffffffd9;
}
}
/* Tablet (2-col grid): anything spanning 3+ collapses to a full row (span 2) */
@media (min-width: 640px) and (max-width: 1023px) {
.card[data-cols='3'],
+1 -1
View File
@@ -194,7 +194,7 @@
});
</script>
<div class="layout-stage" class:chat-open={chatStore.open}>
<div class="layout-stage" class:chat-open={chatStore.open} class:has-pattern={!!bgPattern}>
<div
class="app-shell {bgPattern ? `pattern-${bgPattern}` : ''}"
style={`${bgSizeVw ? `--s:calc(${bgSizeVw} * 1vw);` : ''}--c1:${bgShades.c1};--c2:${bgShades.c2};--c3:${bgShades.c3};--c4:${bgShades.c4}`}
@@ -103,6 +103,8 @@
);
}
let hasClaimableRewards = $derived(claimableRewards().length > 0);
function memberClaimable(memberId: string) {
return claimableRewards().filter((r: any) => r.memberId === memberId);
}
@@ -1067,7 +1069,7 @@
{/if}
</Card>
<Card cols={1} title="Claims" accent="#f97316" class="claims-card">
<Card cols={1} title="Claims" accent={claimableRewards().length > 0 ? '#f97316' : undefined} class={claimableRewards().length > 0 ? 'claims-card' : ''}>
{#if claimableRewards().length === 0}
<div class="claims-empty">
{@html checkCircleIcon}<span>No outstanding claims</span>