style: optimize the comment area style
This commit is contained in:
parent
7aa4f33167
commit
18cfd0d7dd
7 changed files with 23 additions and 15 deletions
|
|
@ -1,2 +0,0 @@
|
||||||
# tailwind
|
|
||||||
tailwind.config.ts
|
|
||||||
|
|
@ -10,6 +10,7 @@ const { home, archive, custom, links, about } =
|
||||||
---
|
---
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
transition:persist
|
||||||
class="mb-10 mt-4 flex gap-4 overflow-x-auto whitespace-nowrap text-lg [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
|
class="mb-10 mt-4 flex gap-4 overflow-x-auto whitespace-nowrap text-lg [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,8 @@ export const common = {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
twikoo: {
|
twikoo: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
envId: "https://astro-air-twikoo.netlify.app/.netlify/functions/twikoo",
|
// replace with your own envId
|
||||||
|
envId: import.meta.env.PUBLIC_TWIKOO_ENV_ID ?? "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import { NoiseBackground } from "~/components/react/noise-background"
|
||||||
import { getLangFromUrl } from "~/i18n/utils"
|
import { getLangFromUrl } from "~/i18n/utils"
|
||||||
import { GoogleAnalytics } from "astro-google-analytics"
|
import { GoogleAnalytics } from "astro-google-analytics"
|
||||||
import { en, zh } from "~/config"
|
import { en, zh } from "~/config"
|
||||||
|
import { ClientRouter } from "astro:transitions"
|
||||||
|
|
||||||
const lang = getLangFromUrl(Astro.url)
|
const lang = getLangFromUrl(Astro.url)
|
||||||
|
|
||||||
|
|
@ -88,6 +89,8 @@ const config = lang === "zh" ? zh : en
|
||||||
<GoogleAnalytics id={config.googleAnalyticsId} />
|
<GoogleAnalytics id={config.googleAnalyticsId} />
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<ClientRouter />
|
||||||
</head>
|
</head>
|
||||||
<body
|
<body
|
||||||
class="flex min-h-screen w-full justify-center px-6 dark:bg-[#121212] dark:text-white md:px-0"
|
class="flex min-h-screen w-full justify-center px-6 dark:bg-[#121212] dark:text-white md:px-0"
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ const openGraphImage = !ogImage ? `/og/${filename}.png` : ogImage
|
||||||
<Header />
|
<Header />
|
||||||
<Navigation />
|
<Navigation />
|
||||||
<slot />
|
<slot />
|
||||||
<div class="my-20">
|
<div class="mt-20">
|
||||||
{needComment && <Comments />}
|
{needComment && <Comments />}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
|
|
@ -52,9 +52,9 @@ const { Content } = await render(post)
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
<div class="my-10">
|
<div class="my-10">
|
||||||
<Comments />
|
<Comments />
|
||||||
</div>
|
</div>
|
||||||
</article>
|
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
/* loading spinner */
|
|
||||||
.el-loading-spinner {
|
|
||||||
left: 50% !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* admin container height */
|
/* admin container height */
|
||||||
.tk-admin-container {
|
.tk-admin-container {
|
||||||
height: 150% !important;
|
height: 150% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* comments container */
|
||||||
|
.tk-comments-container {
|
||||||
|
margin-top: 50px !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* avatar*/
|
/* avatar*/
|
||||||
.tk-avatar {
|
.tk-avatar {
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
|
|
@ -27,9 +27,14 @@
|
||||||
border-radius: 10px !important;
|
border-radius: 10px !important;
|
||||||
padding: 10px !important;
|
padding: 10px !important;
|
||||||
background-color: rgba(144, 147, 153, 0.1) !important;
|
background-color: rgba(144, 147, 153, 0.1) !important;
|
||||||
width: auto !important;
|
}
|
||||||
|
|
||||||
|
/* PC 端宽度调整 */
|
||||||
|
@media screen and (min-width: 768px) {
|
||||||
|
.tk-main .tk-content {
|
||||||
max-width: 60% !important;
|
max-width: 60% !important;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* comment content image */
|
/* comment content image */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue