Update theme usage
This commit is contained in:
parent
20b43b933e
commit
0600908c7d
4 changed files with 7 additions and 21 deletions
|
|
@ -2,10 +2,7 @@
|
|||
<script>
|
||||
if (document) {
|
||||
const defaultTheme = "dark";
|
||||
const itemTheme = localStorage.getItem("theme") ?? defaultTheme;
|
||||
|
||||
localStorage.setItem("theme", itemTheme);
|
||||
document.documentElement.setAttribute("data-theme", itemTheme);
|
||||
document.documentElement.setAttribute("data-theme", defaultTheme);
|
||||
}
|
||||
</script>
|
||||
</svelte:head>
|
||||
|
|
|
|||
|
|
@ -291,7 +291,6 @@ Still alive.</p>
|
|||
|
||||
<style>
|
||||
* {
|
||||
color: white !important;
|
||||
font-family: monospace;
|
||||
white-space: pre;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@
|
|||
}
|
||||
|
||||
li a:hover {
|
||||
border-bottom: 2px solid white;
|
||||
border-bottom: 2px solid var(--link-color-hover);
|
||||
}
|
||||
|
||||
h2 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue