From 873dd80750335343d361611321ef1fcee155c8fe Mon Sep 17 00:00:00 2001 From: tycrek Date: Sat, 3 Jul 2021 10:11:36 -0600 Subject: [PATCH] removed reliance on DarkReader --- views/css/ass.css | 13 +++++++++++++ views/head.pug | 8 ++------ 2 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 views/css/ass.css diff --git a/views/css/ass.css b/views/css/ass.css new file mode 100644 index 0000000..00fc1d7 --- /dev/null +++ b/views/css/ass.css @@ -0,0 +1,13 @@ +/* Modest dark fixes */ +pre, code { background-color: unset !important; } +h1, h2, h3 { border-bottom: 2px solid #323232 !important; } + +/* Dark theme */ +body { + background-color: #212121; + color: #BDBDBD; +} + +body, button { + text-shadow: 1px 1px 2px black; +} diff --git a/views/head.pug b/views/head.pug index e7b5b08..605d2a5 100644 --- a/views/head.pug +++ b/views/head.pug @@ -1,17 +1,13 @@ meta(name='viewport' content='width=device-width, initial-scale=1.0, viewport-fit=cover') //- Markdown stylesheet & Highlight.js theme +style: include css/ass.css style: include css/modest.css style: include css/dracula.highlight.js.css -//- jQuery; DarkReader for easy dark modes; Highlight.js for codeblocks +//- jQuery; Highlight.js for codeblocks script(src='https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js') -script(src='https://cdn.jsdelivr.net/npm/darkreader@4/darkreader.min.js') script(src='https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.7.1/build/highlight.min.js') script. - // Dark mode with Dark Reader - DarkReader.setFetchMethod(window.fetch); - DarkReader.enable({}, { css: '#content { background-color: #121212 !important; }' }); // Fix the card colour - // Highlight code blocks hljs.highlightAll();