fix: contrast issues
This commit is contained in:
8 files changed
+17
-7
No files matched your search
@@ -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),
|
||||
|
||||
@@ -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',
|
||||
]}
|
||||
>
|
||||
|
||||
@@ -119,6 +119,10 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@variant hover {
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
.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"
|
||||
adaptive={false}
|
||||
>
|
||||
{#snippet customIcon({ isSelected })}
|
||||
{#snippet customIcon()}
|
||||
{#if LINKED_INSTANCE_URL}
|
||||
{#if site.data}
|
||||
<Avatar
|
||||
|
||||
@@ -179,6 +179,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
.no-hover:hover {
|
||||
cursor: normal !important;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
border: 1px solid transparent;
|
||||
background-color: var(--color-primary-900);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
]}
|
||||
|
||||
Reference in new issue
Block a user