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
|
||||
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"
|
||||
>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -39,7 +39,8 @@ export const common = {
|
|||
enabled: true,
|
||||
twikoo: {
|
||||
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 { GoogleAnalytics } from "astro-google-analytics"
|
||||
import { en, zh } from "~/config"
|
||||
import { ClientRouter } from "astro:transitions"
|
||||
|
||||
const lang = getLangFromUrl(Astro.url)
|
||||
|
||||
|
|
@ -88,6 +89,8 @@ const config = lang === "zh" ? zh : en
|
|||
<GoogleAnalytics id={config.googleAnalyticsId} />
|
||||
)
|
||||
}
|
||||
|
||||
<ClientRouter />
|
||||
</head>
|
||||
<body
|
||||
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 />
|
||||
<Navigation />
|
||||
<slot />
|
||||
<div class="my-20">
|
||||
<div class="mt-20">
|
||||
{needComment && <Comments />}
|
||||
</div>
|
||||
</main>
|
||||
|
|
|
|||
|
|
@ -52,9 +52,9 @@ const { Content } = await render(post)
|
|||
))
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="my-10">
|
||||
<Comments />
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<div class="my-10">
|
||||
<Comments />
|
||||
</div>
|
||||
</MainLayout>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
/* loading spinner */
|
||||
.el-loading-spinner {
|
||||
left: 50% !important;
|
||||
}
|
||||
|
||||
/* admin container height */
|
||||
.tk-admin-container {
|
||||
height: 150% !important;
|
||||
}
|
||||
|
||||
/* comments container */
|
||||
.tk-comments-container {
|
||||
margin-top: 50px !important;
|
||||
}
|
||||
|
||||
/* avatar*/
|
||||
.tk-avatar {
|
||||
background-color: transparent !important;
|
||||
|
|
@ -27,8 +27,13 @@
|
|||
border-radius: 10px !important;
|
||||
padding: 10px !important;
|
||||
background-color: rgba(144, 147, 153, 0.1) !important;
|
||||
width: auto !important;
|
||||
max-width: 60% !important;
|
||||
}
|
||||
|
||||
/* PC 端宽度调整 */
|
||||
@media screen and (min-width: 768px) {
|
||||
.tk-main .tk-content {
|
||||
max-width: 60% !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* comment content image */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue