More updates

This commit is contained in:
Dennis Reimann
2022-12-10 14:59:33 +01:00
parent 4d203fed07
commit 046b28f574
4 changed files with 4 additions and 3 deletions

View File

@@ -36,6 +36,5 @@ html(lang="de")
br
= " für den schönen Baum! 🎄"
a(href="/") Zurück zur Homepage
script(src=assetPath("/js/adventskalender.js"))
include includes/_footer

View File

@@ -83,7 +83,7 @@
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
:root:not([data-theme="light"]):not([data-theme="custom"]) {
@mixin dark-theme;
}
}

View File

@@ -15,7 +15,9 @@ const setColorMode = mode => {
}
}
setColorMode(initialColorMode)
if (!document.documentElement.hasAttribute(THEME_ATTR)) {
setColorMode(initialColorMode)
}
const copyToClipboard = (e, text) => {
if (navigator.clipboard) {