fix: contrast issues
This commit is contained in:
8 files changed
+17
-7
No files matched your search
@@ -92,7 +92,7 @@
|
|||||||
<button
|
<button
|
||||||
onclick={() => castVote(vote == targetNum ? 0 : targetNum)}
|
onclick={() => castVote(vote == targetNum ? 0 : targetNum)}
|
||||||
class={[
|
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',
|
'first:rounded-l-3xl last:rounded-r-3xl',
|
||||||
'last:flex-row-reverse',
|
'last:flex-row-reverse',
|
||||||
vote == targetNum
|
vote == targetNum
|
||||||
|
|||||||
@@ -54,6 +54,7 @@
|
|||||||
transition: background-color 0.1s;
|
transition: background-color 0.1s;
|
||||||
background-color: var(--color-white);
|
background-color: var(--color-white);
|
||||||
container-type: inline-size;
|
container-type: inline-size;
|
||||||
|
border: 1px solid var(--color-slate-100);
|
||||||
|
|
||||||
border-radius: var(--radius-md) var(--radius-md);
|
border-radius: var(--radius-md) var(--radius-md);
|
||||||
|
|
||||||
@@ -103,6 +104,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:global(.dark) ul > :global(li) {
|
:global(.dark) ul > :global(li) {
|
||||||
|
border: 1px solid var(--color-zinc-900);
|
||||||
background-color: color-mix(
|
background-color: color-mix(
|
||||||
in oklab,
|
in oklab,
|
||||||
var(--color-zinc-925),
|
var(--color-zinc-925),
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
class={[
|
class={[
|
||||||
'rounded-full font-medium transition-colors duration-100 relative z-0 shrink-0 hover:text-slate-900 hover:dark:text-zinc-100',
|
'rounded-full font-medium transition-colors duration-100 relative z-0 shrink-0 hover:text-slate-900 hover:dark:text-zinc-100',
|
||||||
selected
|
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',
|
: 'text-slate-500 dark:text-zinc-500',
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -119,6 +119,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@variant hover {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-btn-sm-primary .prefix {
|
.nav-btn-sm-primary .prefix {
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
class="logo border-0 md:rounded-full! md:w-10! md:h-10 md:px-0! -order-1"
|
class="logo border-0 md:rounded-full! md:w-10! md:h-10 md:px-0! -order-1"
|
||||||
adaptive={false}
|
adaptive={false}
|
||||||
>
|
>
|
||||||
{#snippet customIcon({ isSelected })}
|
{#snippet customIcon()}
|
||||||
{#if LINKED_INSTANCE_URL}
|
{#if LINKED_INSTANCE_URL}
|
||||||
{#if site.data}
|
{#if site.data}
|
||||||
<Avatar
|
<Avatar
|
||||||
|
|||||||
@@ -179,6 +179,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.no-hover:hover {
|
||||||
|
cursor: normal !important;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
background-color: var(--color-primary-900);
|
background-color: var(--color-primary-900);
|
||||||
|
|||||||
@@ -39,11 +39,11 @@
|
|||||||
:global(*) {
|
:global(*) {
|
||||||
position: relative;
|
position: relative;
|
||||||
&:first-child {
|
&:first-child {
|
||||||
border-radius: 24px 8px 8px 24px;
|
border-radius: 24px 8px 8px 24px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border-radius: 8px 24px 24px 8px;
|
border-radius: 8px 24px 24px 8px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
...rest
|
...rest
|
||||||
}: Props = $props()
|
}: Props = $props()
|
||||||
|
|
||||||
let selected = $derived(page.url.pathname == href)
|
let selected = $derived(page.url.pathname.startsWith(href))
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
class={[
|
class={[
|
||||||
'hover:text-slate-900 hover:dark:text-zinc-50',
|
'hover:text-slate-900 hover:dark:text-zinc-50',
|
||||||
selected
|
selected
|
||||||
? 'text-primary-900 dark:text-primary-100'
|
? 'text-primary-900 dark:text-primary-100 cursor-default!'
|
||||||
: 'text-slate-600 dark:text-zinc-400',
|
: 'text-slate-600 dark:text-zinc-400',
|
||||||
clazz,
|
clazz,
|
||||||
]}
|
]}
|
||||||
|
|||||||
Reference in new issue
Block a user