8 Commits

4 changed files with 19 additions and 8 deletions

View File

@@ -4,6 +4,8 @@ View your notes as a static html site. Browse a live sample of it [here](https:/
![](./screenshot.png) ![](./screenshot.png)
Tested with [pandoc v2.19.2](https://github.com/jgm/pandoc/releases/tag/2.19.2).
## Why? ## Why?

View File

@@ -7,7 +7,7 @@ const fuse = new Fuse(data, {
keys: [ keys: [
{ {
name: HEADERS, name: HEADERS,
weight: 2 weight: 1.5
}, },
{ {
name: PATH, name: PATH,
@@ -19,7 +19,7 @@ const fuse = new Fuse(data, {
}, },
{ {
name: TITLE, name: TITLE,
weight: 1.5 weight: 4
} }
], ],
includeMatches: true includeMatches: true

View File

@@ -1,6 +1,8 @@
@import url("https://styles.alv.cx/colors/gruvbox.css");
@import url("https://styles.alv.cx/base.css"); @import url("https://styles.alv.cx/base.css");
@import url("https://styles.alv.cx/modules/search.css"); @import url("https://styles.alv.cx/modules/search.css");
@import url("https://styles.alv.cx/modules/buttonlist.css"); @import url("https://styles.alv.cx/modules/buttonlist.css");
@import url("https://styles.alv.cx/modules/darkmode.css");
html { html {
scroll-behavior: smooth; scroll-behavior: smooth;
@@ -29,10 +31,10 @@ body {
} }
.matchHighlight { .matchHighlight {
background-color: #86c1b9; background-color: var(--blue);
} }
#sidebar > #header { padding-bottom: 1em; color: #656565;} #sidebar > #header { padding-bottom: 1em; color: var(--fg-lc);}
#header > * { #header > * {
margin: 0; margin: 0;
@@ -71,12 +73,12 @@ body {
#sidebar, #sidebar,
#toc li > a { #toc li > a {
color: #656565; color: var(--fg-lc);
} }
#toc li, ul#articlelist { list-style: none; } #toc li, ul#articlelist { list-style: none; }
#toc ul, ul#articlelist { margin-left: 0.75em ; padding-left: 0.75em; } #toc ul, ul#articlelist { margin-left: 0.75em ; padding-left: 0.75em; }
#toc ul, ul#articlelist { border-left: 1px solid #b3b3b3;} #toc ul, ul#articlelist { border-left: 1px solid var(--fg-lc);}
#toc > ul { padding; none; padding: 0; margin: 0; border: none;max-width: 100%;} #toc > ul { padding; none; padding: 0; margin: 0; border: none;max-width: 100%;}
li { padding: 0 !important; } li { padding: 0 !important; }
@@ -91,12 +93,12 @@ ul#articlelist > a{
} }
#toc li > a:hover, #toc li > a:hover,
ul#articlelist li a:hover { ul#articlelist li a:hover {
background: #d9d9d9; background: var(--bg-lc);
color: black; color: black;
} }
mjx-container { mjx-container {
overflow-x: scroll; overflow-x: auto;
} }
@media (max-width: 60em) { @media (max-width: 60em) {

View File

@@ -4,6 +4,13 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" /> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" />
<link rel="stylesheet" type="text/css" href="/styles.css" /> <link rel="stylesheet" type="text/css" href="/styles.css" />
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script>
MathJax = {
tex: {
tags: 'ams'
}
}
</script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<title>$title$</title> <title>$title$</title>
</head> </head>