fix: contrast issues

This commit is contained in:
Xylight committed 2025-10-08 18:39:12 -07:00
1 parent 1da1415f09
commit 3eae045d53
8 files changed
+17 -7

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@
<button
onclick={() => castVote(vote == targetNum ? 0 : targetNum)}
class={[
'flex items-center gap-0.5 transition-colors relative cursor-pointer h-full p-2',
'flex items-center gap-0.5 transition-colors relative cursor-pointer h-full p-2 active:brightness-90',
'first:rounded-l-3xl last:rounded-r-3xl',
'last:flex-row-reverse',
vote == targetNum
+2
View File
@@ -54,6 +54,7 @@
transition: background-color 0.1s;
background-color: var(--color-white);
container-type: inline-size;
border: 1px solid var(--color-slate-100);
border-radius: var(--radius-md) var(--radius-md);
@@ -103,6 +104,7 @@
}
:global(.dark) ul > :global(li) {
border: 1px solid var(--color-zinc-900);
background-color: color-mix(
in oklab,
var(--color-zinc-925),
+1 -1
View File
@@ -76,7 +76,7 @@
class={[
'rounded-full font-medium transition-colors duration-100 relative z-0 shrink-0 hover:text-slate-900 hover:dark:text-zinc-100',
selected
? 'tab-selected text-primary-900 dark:text-primary-100'
? 'tab-selected text-primary-900 dark:text-primary-100 hover:cursor-default'
: 'text-slate-500 dark:text-zinc-500',
]}
>
+4
View File
@@ -119,6 +119,10 @@
}
}
}
@variant hover {
cursor: default;
}
}
.nav-btn-sm-primary .prefix {
+1 -1
View File
@@ -51,7 +51,7 @@
class="logo border-0 md:rounded-full! md:w-10! md:h-10 md:px-0! -order-1"
adaptive={false}
>
{#snippet customIcon({ isSelected })}
{#snippet customIcon()}
{#if LINKED_INSTANCE_URL}
{#if site.data}
<Avatar
+4
View File
@@ -179,6 +179,10 @@
}
}
.no-hover:hover {
cursor: normal !important;
}
.btn-primary {
border: 1px solid transparent;
background-color: var(--color-primary-900);
+2 -2
View File
@@ -39,11 +39,11 @@
:global(*) {
position: relative;
&:first-child {
border-radius: 24px 8px 8px 24px;
border-radius: 24px 8px 8px 24px !important;
}
&:last-child {
border-radius: 8px 24px 24px 8px;
border-radius: 8px 24px 24px 8px !important;
}
}
}
+2 -2
View File
@@ -23,7 +23,7 @@
...rest
}: Props = $props()
let selected = $derived(page.url.pathname == href)
let selected = $derived(page.url.pathname.startsWith(href))
</script>
<Button
@@ -36,7 +36,7 @@
class={[
'hover:text-slate-900 hover:dark:text-zinc-50',
selected
? 'text-primary-900 dark:text-primary-100'
? 'text-primary-900 dark:text-primary-100 cursor-default!'
: 'text-slate-600 dark:text-zinc-400',
clazz,
]}