mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
style: format files with prettier
This commit is contained in:
@@ -43,7 +43,7 @@ breadcrumbList[0] === "posts" &&
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.breadcrumb {
|
.breadcrumb {
|
||||||
@apply mx-auto mt-8 mb-1 w-full max-w-3xl px-4;
|
@apply mx-auto mb-1 mt-8 w-full max-w-3xl px-4;
|
||||||
}
|
}
|
||||||
.breadcrumb ul li {
|
.breadcrumb ul li {
|
||||||
@apply inline;
|
@apply inline;
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ const { activeNav } = Astro.props;
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
#skip-to-content {
|
#skip-to-content {
|
||||||
@apply absolute -top-full left-16 z-50 bg-skin-accent py-2 px-3 text-skin-inverted transition-all focus:top-4;
|
@apply absolute -top-full left-16 z-50 bg-skin-accent px-3 py-2 text-skin-inverted transition-all focus:top-4;
|
||||||
}
|
}
|
||||||
.nav-container {
|
.nav-container {
|
||||||
@apply mx-auto flex max-w-3xl flex-col items-center justify-between sm:flex-row;
|
@apply mx-auto flex max-w-3xl flex-col items-center justify-between sm:flex-row;
|
||||||
@@ -142,7 +142,7 @@ const { activeNav } = Astro.props;
|
|||||||
@apply flex w-full flex-col items-center bg-skin-fill sm:ml-2 sm:flex-row sm:justify-end sm:space-x-4 sm:py-0;
|
@apply flex w-full flex-col items-center bg-skin-fill sm:ml-2 sm:flex-row sm:justify-end sm:space-x-4 sm:py-0;
|
||||||
}
|
}
|
||||||
nav ul {
|
nav ul {
|
||||||
@apply mt-4 grid w-44 grid-cols-2 grid-rows-4 gap-y-2 gap-x-2 sm:mt-0 sm:ml-0 sm:w-auto sm:gap-y-0 sm:gap-x-5;
|
@apply mt-4 grid w-44 grid-cols-2 grid-rows-4 gap-x-2 gap-y-2 sm:ml-0 sm:mt-0 sm:w-auto sm:gap-x-5 sm:gap-y-0;
|
||||||
}
|
}
|
||||||
nav ul li {
|
nav ul li {
|
||||||
@apply col-span-2 flex items-center justify-center;
|
@apply col-span-2 flex items-center justify-center;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const socialImageURL = new URL(
|
|||||||
<meta name="title" content={title} />
|
<meta name="title" content={title} />
|
||||||
<meta name="description" content={description} />
|
<meta name="description" content={description} />
|
||||||
<meta name="author" content={author} />
|
<meta name="author" content={author} />
|
||||||
<link rel="sitemap" href="/sitemap-index.xml"/>
|
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||||
|
|
||||||
<!-- Open Graph / Facebook -->
|
<!-- Open Graph / Facebook -->
|
||||||
<meta property="og:title" content={title} />
|
<meta property="og:title" content={title} />
|
||||||
|
|||||||
@@ -24,6 +24,6 @@ const { pageTitle, pageDesc } = Astro.props;
|
|||||||
@apply text-2xl font-semibold sm:text-3xl;
|
@apply text-2xl font-semibold sm:text-3xl;
|
||||||
}
|
}
|
||||||
#main-content p {
|
#main-content p {
|
||||||
@apply mt-2 mb-6 italic;
|
@apply mb-6 mt-2 italic;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const ogUrl = new URL(ogImage ? ogImage : `${title}.png`, Astro.url.origin)
|
|||||||
<Header />
|
<Header />
|
||||||
<div class="mx-auto flex w-full max-w-3xl justify-start px-2">
|
<div class="mx-auto flex w-full max-w-3xl justify-start px-2">
|
||||||
<button
|
<button
|
||||||
class="focus-outline mt-8 mb-2 flex hover:opacity-75"
|
class="focus-outline mb-2 mt-8 flex hover:opacity-75"
|
||||||
onclick="history.back()"
|
onclick="history.back()"
|
||||||
>
|
>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg"
|
<svg xmlns="http://www.w3.org/2000/svg"
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ const next = pageNum < totalPages ? "" : "disabled";
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.pagination-wrapper {
|
.pagination-wrapper {
|
||||||
@apply mt-auto mb-8 flex justify-center;
|
@apply mb-8 mt-auto flex justify-center;
|
||||||
}
|
}
|
||||||
.disabled {
|
.disabled {
|
||||||
@apply pointer-events-none select-none opacity-50 hover:text-skin-base group-hover:fill-skin-base;
|
@apply pointer-events-none select-none opacity-50 hover:text-skin-base group-hover:fill-skin-base;
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ const socialCount = SOCIALS.filter(social => social.active).length;
|
|||||||
<style>
|
<style>
|
||||||
/* ===== Hero Section ===== */
|
/* ===== Hero Section ===== */
|
||||||
#hero {
|
#hero {
|
||||||
@apply pt-8 pb-6;
|
@apply pb-6 pt-8;
|
||||||
}
|
}
|
||||||
#hero h1 {
|
#hero h1 {
|
||||||
@apply my-4 inline-block text-3xl font-bold sm:my-8 sm:text-5xl;
|
@apply my-4 inline-block text-3xl font-bold sm:my-8 sm:text-5xl;
|
||||||
@@ -141,13 +141,13 @@ const socialCount = SOCIALS.filter(social => social.active).length;
|
|||||||
@apply mt-4 flex flex-col sm:flex-row sm:items-center;
|
@apply mt-4 flex flex-col sm:flex-row sm:items-center;
|
||||||
}
|
}
|
||||||
.social-links {
|
.social-links {
|
||||||
@apply mr-2 mb-1 whitespace-nowrap sm:mb-0;
|
@apply mb-1 mr-2 whitespace-nowrap sm:mb-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== Featured & Recent Posts Sections ===== */
|
/* ===== Featured & Recent Posts Sections ===== */
|
||||||
#featured,
|
#featured,
|
||||||
#recent-posts {
|
#recent-posts {
|
||||||
@apply pt-12 pb-6;
|
@apply pb-6 pt-12;
|
||||||
}
|
}
|
||||||
#featured h2,
|
#featured h2,
|
||||||
#recent-posts h2 {
|
#recent-posts h2 {
|
||||||
|
|||||||
Reference in New Issue
Block a user