深色模式调整配色

This commit is contained in:
tangly1024
2022-04-02 10:15:37 +08:00
parent 56be56d002
commit 475e5f6f60
14 changed files with 21 additions and 22 deletions

View File

@@ -32,8 +32,8 @@ const LayoutBase = props => {
<div className='dark:text-gray-300'>
<CommonHead meta={meta} />
{/* 导航菜单 */}
<div className="w-full flex justify-center my-2">
<div className=" max-w-6xl justify-between w-full flex">
<div className="w-full flex justify-center my-2 text-xs md:text-base px-5">
<div className="max-w-6xl justify-between w-full flex">
<section>
<Link title={siteInfo.title} href={'/'}>
<a className={'cursor-pointer flex items-center hover:underline'}>
@@ -42,14 +42,14 @@ const LayoutBase = props => {
</a>
</Link>
</section>
<nav className="space-x-3 flex">
<nav className="space-x-3 flex flex-nowrap overflow-x-auto">
{links.map(link => {
if (link) {
return (
<Link key={`${link.to}`} title={link.to} href={link.to}>
<a
className={
'cursor-pointer flex items-center hover:underline'
'cursor-pointer flex whitespace-nowrap items-center hover:underline'
}
>
<i className={`${link.icon} mr-1`} />

View File

@@ -18,7 +18,7 @@ export const LayoutIndex = props => {
return (
<LayoutBase {...props}>
{posts.map(p => (
<div key={p.id} className='border p-4 my-12'>
<div key={p.id} className='border dark:border-hexo-black-gray p-4 my-12'>
<Link href={`/article/${p.slug}`}>
<a className='underline cursor-pointer'>{p.title}</a>
</Link>