KaTeX & Syntax Highlighting support

This commit is contained in:
2025-09-09 13:17:53 +07:00
parent d310b6df64
commit 8540d72993
10 changed files with 709 additions and 152 deletions
+30 -1
View File
@@ -29,7 +29,7 @@ body {
color: var(--theme-foreground);
}
.btn {
@utility btn {
@apply px-2 py-1 cursor-pointer;
}
@@ -41,9 +41,38 @@ body {
@apply border py-1 px-2 rounded;
}
.hljs {
@apply rounded;
}
.printarea {
visibility: hidden;
display: none;
code {
text-wrap: wrap;
}
}
img {
display: inline-block;
margin: 0;
}
.top-menu-button {
@apply hover:bg-gray-300/40 dark:hover:bg-gray-500/40 btn rounded transition-colors flex-1 text-left;
}
.max-h-half {
max-height: calc(50vh - 32px);
}
@utility h-screen-trimmed {
height: calc(100vh - 64px);
}
@utility max-h-screen-trimmed {
max-height: calc(100vh - 64px);
}
@media print {