Compare commits

..

No commits in common. "3adcf97ddc5f2a53b88f3e585846026fbd515f66" and "38d30e6889d5636c4d7249ed4192deeb24f8bfb0" have entirely different histories.

7 changed files with 9 additions and 47 deletions

View File

@ -32,17 +32,4 @@
#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;
}

View File

@ -45,14 +45,19 @@
.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-black my-4;
@apply overflow-x-auto p-4 border border-solid border-gray-400 shadow-lg;
}
.markdown code {
@apply border-dashed border-b border-black px-1 font-mono text-lg;
@apply bg-gray-200 font-mono text-lg;
}
.markdown pre code {
@apply px-0 border-none;
@apply bg-transparent;
}
.markdown ul {
@apply pl-8 list-disc;
@ -70,7 +75,3 @@
.markdown a {
@apply border-b border-black;
}
.markdown a.footnote-backref, a.footnote-ref {
@apply border-none;
}

View File

@ -6,7 +6,7 @@
</div>
</footer>
{{- if or ( eq .Params.math true ) ( .HasShortcode "math" ) -}}
{{- if (and .IsPage .Params.math) -}}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"

View File

@ -1,6 +0,0 @@
<span class="inline-block relative">
<sup>...</sup>
</span>
<span class="absolute w-64 border bg-blue-400 hidden inline-block">
{{ .Inner | $.Page.RenderString }}
</span>

View File

@ -1,3 +0,0 @@
<div class='text-center my-6'>
{{ .Inner | $.Page.RenderString }}
</div>

View File

@ -1,12 +0,0 @@
<div class="book-expand my-4 overflow-hidden border border-black">
<label>
<div class="book-expand-head flex justify-between py-1 px-2 border-black border-b border-dotted">
<span>{{ default "Expand" (.Get 0) }}</span>
<span>{{ default "↕" (.Get 1) }}</span>
</div>
<input type="checkbox" class="hidden" />
<div class="book-expand-content py-1 px-2">
{{ .Inner | markdownify }}
</div>
</label>
</div>

View File

@ -1,5 +0,0 @@
{{ if ( ( eq ( .Get 0 ) "inline")) }}
<span class="math inline">\({{- .Inner -}}\)</span>
{{ else }}
<span class="math display">\[{{- .Inner -}}\]</span>
{{ end }}