💅 微调颜色比例,固定夜间模式按钮

This commit is contained in:
tangly1024
2021-09-28 13:29:47 +08:00
parent 82c32e1b6f
commit 9871d136bd
9 changed files with 26 additions and 22 deletions

View File

@@ -49,10 +49,10 @@ const Toc = ({ toc }) => {
return (
<>
<div className='text-center font-bold text-white'>
<div className='text-center font-bold text-black dark:text-white'>
文章目录
</div>
<nav className='notion-table-of-contents text-gray-400 underline'>
<nav className='notion-table-of-contents text-gray-500 dark:text-gray-400 underline'>
{toc.map((tocItem) => {
const id = uuidToId(tocItem.id)
return (
@@ -63,7 +63,7 @@ const Toc = ({ toc }) => {
'notion-table-of-contents-item',
`notion-table-of-contents-item-indent-level-${tocItem.indentLevel}`,
activeSection === id &&
' font-bold text-white'
' font-bold text-black dark:text-white'
)}
>
<span