fixed prose-darkmode issue, ref #67

This commit is contained in:
somrat sorkar 2023-12-25 08:25:38 +06:00
parent e9bdde544e
commit be7bb7c34e
5 changed files with 7 additions and 7 deletions

View File

@ -3,7 +3,7 @@ html {
} }
body { body {
@apply bg-body font-primary text-text dark:bg-darkmode-body dark:text-darkmode-text font-normal leading-relaxed; @apply bg-body dark:bg-darkmode-body font-primary font-normal leading-relaxed text-text dark:text-darkmode-text;
} }
h1, h1,
@ -12,7 +12,7 @@ h3,
h4, h4,
h5, h5,
h6 { h6 {
@apply font-secondary text-dark dark:text-darkmode-dark font-bold leading-tight; @apply font-secondary font-bold leading-tight text-dark dark:text-darkmode-dark;
} }
h1, h1,

View File

@ -50,7 +50,7 @@ main {
// content style // content style
.content { .content {
@apply prose max-w-none; @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-h1:text-h1-sm md:prose-h1:text-h1;
@apply prose-h2:text-h2-sm md:prose-h2:text-h2; @apply prose-h2:text-h2-sm md:prose-h2:text-h2;
@apply prose-h3:text-h3-sm md:prose-h3:text-h3; @apply prose-h3:text-h3-sm md:prose-h3:text-h3;

View File

@ -36,7 +36,7 @@ input#nav-toggle:checked ~ #nav-menu {
// } // }
.nav-link { .nav-link {
@apply text-dark hover:text-primary dark:text-darkmode-dark block p-3 font-semibold transition 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 { .nav-dropdown {

View File

@ -111,7 +111,7 @@
{{ if .enable }} {{ if .enable }}
<button <button
aria-label="search" aria-label="search"
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" 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"
data-target="search-modal"> data-target="search-modal">
<i class="fa-solid fa-search"></i> <i class="fa-solid fa-search"></i>
</button> </button>

View File

@ -1,7 +1,7 @@
{ {
"name": "hugoplate", "name": "hugoplate",
"description": "hugo tailwindcss boilerplate", "description": "hugo tailwindcss boilerplate",
"version": "1.10.1", "version": "1.10.2",
"license": "MIT", "license": "MIT",
"author": "zeon.studio", "author": "zeon.studio",
"scripts": { "scripts": {
@ -28,6 +28,6 @@
"prettier-plugin-go-template": "0.0.15", "prettier-plugin-go-template": "0.0.15",
"prettier-plugin-tailwindcss": "^0.5.9", "prettier-plugin-tailwindcss": "^0.5.9",
"tailwind-bootstrap-grid": "^5.1.0", "tailwind-bootstrap-grid": "^5.1.0",
"tailwindcss": "^3.3.7" "tailwindcss": "^3.4.0"
} }
} }