style: navbar hover 弃黑改纸按压色——新增 paper-deep token(#f2ead9,暖阶),黑色留给选中语义不再冲突
This commit is contained in:
1 parent
65df0ef1d7
commit
9ad5685bd6
2 files changed
+3
-2
No files matched your search
@@ -55,7 +55,7 @@ export function Page({
|
||||
key={n.href}
|
||||
href={n.href}
|
||||
className={`rounded-lg px-2.5 py-1 text-[12.5px] font-bold no-underline transition-colors ${
|
||||
on ? (n.id ? 'text-ink' : 'bg-ink text-paper') : 'text-body hover:bg-black/5'
|
||||
on ? (n.id ? 'text-ink' : 'bg-ink text-paper') : 'text-body hover:bg-paper-deep'
|
||||
}`}
|
||||
style={on && n.id ? { background: CHAPTERS[n.id].color } : undefined}
|
||||
>
|
||||
@@ -74,7 +74,7 @@ export function Page({
|
||||
key={n.href}
|
||||
href={n.href}
|
||||
className={`rounded-lg px-2.5 py-1 text-[12.5px] font-bold no-underline transition-colors ${
|
||||
on ? 'bg-ink text-paper' : 'text-body hover:bg-black/5'
|
||||
on ? 'bg-ink text-paper' : 'text-body hover:bg-paper-deep'
|
||||
}`}
|
||||
>
|
||||
{n.label}
|
||||
|
||||
Reference in new issue
Block a user