diff --git a/themes/hugo-w2ng/assets/css/site.css b/themes/hugo-w2ng/assets/css/site.css
index 525c2bc..528969b 100644
--- a/themes/hugo-w2ng/assets/css/site.css
+++ b/themes/hugo-w2ng/assets/css/site.css
@@ -32,4 +32,17 @@
#header_logo {
font-family: "Virgil";
+}
+
+/* fix katex and tailwind base style confilt */
+span.math span {
+ @apply border-black;
+}
+
+/* shortcode expand */
+.book-expand .book-expand-content {
+ @apply hidden;
+}
+.book-expand input[type="checkbox"]:checked + .book-expand-content {
+ @apply block;
}
\ No newline at end of file
diff --git a/themes/hugo-w2ng/assets/css/styles.css b/themes/hugo-w2ng/assets/css/styles.css
index 5699a11..080e99f 100644
--- a/themes/hugo-w2ng/assets/css/styles.css
+++ b/themes/hugo-w2ng/assets/css/styles.css
@@ -45,19 +45,14 @@
.markdown td {
@apply p-1;
}
-.markdown thead,
-.markdown tfoot,
-.markdown tr:nth-child(even) {
- @apply bg-gray-200;
-}
.markdown pre {
- @apply overflow-x-auto p-4 border border-solid border-gray-400 shadow-lg;
+ @apply overflow-x-auto p-4 border border-solid border-black my-4;
}
.markdown code {
- @apply bg-gray-200 font-mono text-lg;
+ @apply border-dashed border-b border-black px-1 font-mono text-lg;
}
.markdown pre code {
- @apply bg-transparent;
+ @apply px-0 border-none;
}
.markdown ul {
@apply pl-8 list-disc;
diff --git a/themes/hugo-w2ng/layouts/partials/footer.html b/themes/hugo-w2ng/layouts/partials/footer.html
index 1545f08..75239cd 100644
--- a/themes/hugo-w2ng/layouts/partials/footer.html
+++ b/themes/hugo-w2ng/layouts/partials/footer.html
@@ -6,7 +6,7 @@
-{{- if (and .IsPage .Params.math) -}}
+{{- if or ( eq .Params.math true ) ( .HasShortcode "math" ) -}}