diff --git a/docs/pandoc/script.js b/docs/pandoc/script.js new file mode 100644 index 0000000..7e1fe65 --- /dev/null +++ b/docs/pandoc/script.js @@ -0,0 +1,13 @@ +addEventListener('DOMContentLoaded', () => { + const fullpath = location.origin + location.pathname + + document.querySelectorAll('nav a').forEach((el) => { + const url = new URL(el.href) + const fullurl = url.origin + url.pathname.replace(/\/$/, "") + console.log("fullurl", fullurl) + console.log("fullpath", fullpath) + if (fullurl === fullpath.replace(/\/$/, "")) { + el.classList.add('active') + } + }) +}) diff --git a/docs/pandoc/style.css b/docs/pandoc/style.css index b583ac8..c7f451c 100644 --- a/docs/pandoc/style.css +++ b/docs/pandoc/style.css @@ -85,10 +85,6 @@ nav a.active { color: #faf8e4 !important; } -a code { - text-decoration-line: underline; -} - footer { height: 2rem; position: absolute; @@ -140,6 +136,25 @@ a:focus { outline: thin dotted; } +a code { + text-decoration-line: underline; +} + +strong a { + text-decoration-line: underline; + color: var(--fg0); +} + +strong a:hover { + text-decoration-line: underline; + color: var(--fg0); +} + +strong a:visited { + text-decoration-line: underline; + color: var(--fg0); +} + *::-moz-selection { /* background: var(--ltred); */ background: rgba(255, 255, 0, 0.3); diff --git a/docs/pandoc/template.html b/docs/pandoc/template.html index d5e1e2b..8299bdf 100644 --- a/docs/pandoc/template.html +++ b/docs/pandoc/template.html @@ -36,18 +36,7 @@ - + @@ -61,6 +50,7 @@
Home Options + Wiki Github
@@ -100,9 +90,6 @@

$toc-title$