Compare commits

..
2 Commits
Author SHA1 Message Date
Riyyi 6ac81c61d9 Cleanup 2025-04-04 07:21:06 +02:00
Riyyi 64a8aecf25 Persistent color theme 2025-04-04 07:21:06 +02:00
2 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -7,7 +7,7 @@
background-color: #fff;
}
body.dark {
.dark {
background-color: #1a1d20;
}
@@ -78,7 +78,7 @@
css = "dark";
}
const element = document.querySelector("body");
const element = document.querySelector("html");
element.classList.add(css);
</script>
</body>
+1 -3
View File
@@ -29,12 +29,10 @@ export const useStateStore = defineStore("state", () => {
html.setAttribute('data-bs-theme', css);
// Theme class used by shiki syntax highlighting
html.classList.remove("dark");
if (css === "dark") {
html.classList.add("dark");
}
else {
html.classList.remove("dark");
}
}
const popoverList = ref<any[]>([]);