fixed prose-darkmode issue

This commit is contained in:
somrat sorkar
2023-12-26 09:07:55 +06:00
parent 65f9ec6779
commit bd1dd7dd02
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "astroplate",
"version": "3.1.1",
"version": "3.1.2",
"description": "Astro and Tailwindcss boilerplate",
"author": "zeon.studio",
"license": "MIT",
+3 -3
View File
@@ -119,13 +119,13 @@ const { pathname } = Astro.url;
<div class="order-1 ml-auto flex items-center md:order-2 lg:ml-0">
{
settings.search && (
<span
class="mr-5 inline-block border-r border-border pr-5 text-xl text-dark hover:text-primary dark:border-darkmode-border dark:text-white cursor-pointer"
<button
class="border-border text-dark hover:text-primary dark:border-darkmode-border mr-5 inline-block border-r pr-5 text-xl dark:text-white dark:hover:text-darkmode-primary"
aria-label="search"
data-search-trigger
>
<IoSearch />
</span>
</button>
)
}
<ThemeSwitcher className="mr-5" />
+1 -1
View File
@@ -3,7 +3,7 @@ html {
}
body {
@apply bg-body font-primary font-normal leading-relaxed text-text dark:bg-darkmode-body dark:text-darkmode-text;
@apply bg-body dark:bg-darkmode-body font-primary font-normal leading-relaxed text-text dark:text-darkmode-text;
}
h1,
+1 -1
View File
@@ -155,7 +155,7 @@
// content style
.content {
@apply prose max-w-none;
@apply prose-headings:mb-[.3em] prose-headings:mt-[.6em];
@apply prose-headings:mb-[.3em] prose-headings:mt-[.6em] prose-headings:text-dark prose-headings:dark:text-darkmode-dark;
@apply prose-h1:text-h1-sm md:prose-h1:text-h1;
@apply prose-h2:text-h2-sm md:prose-h2:text-h2;
@apply prose-h3:text-h3-sm md:prose-h3:text-h3;
+1 -1
View File
@@ -36,7 +36,7 @@ input#nav-toggle:checked ~ #nav-menu {
// }
.nav-link {
@apply block p-3 font-semibold transition text-dark hover:text-primary dark:text-darkmode-dark dark:hover:text-darkmode-primary lg:px-2 lg:py-3;
@apply text-dark hover:text-primary dark:text-darkmode-dark dark:hover:text-darkmode-primary block p-3 font-semibold transition lg:px-2 lg:py-3;
}
.nav-dropdown {