summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-05-15 20:28:42 +0200
committerVolpeon <git@volpeon.ink>2021-05-15 20:28:42 +0200
commitec81f70b5983054b0e0fa46a75c639c665b1550b (patch)
tree9e4986ac78f26afab24cb3f4b2067b2b1c846664 /templates
parentAdded light theme (diff)
downloadvolpeon.ink-ec81f70b5983054b0e0fa46a75c639c665b1550b.tar.gz
volpeon.ink-ec81f70b5983054b0e0fa46a75c639c665b1550b.tar.bz2
volpeon.ink-ec81f70b5983054b0e0fa46a75c639c665b1550b.zip
Fix overlapping box-shadows in card grid, load theme from localStorage
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index d9aaa8e..3a1502b 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -30,6 +30,14 @@
30 <link rel="preload" href="/iosevka-term-ss09-bold.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> 30 <link rel="preload" href="/iosevka-term-ss09-bold.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
31 31
32 <link rel="stylesheet" href="/style.css" /> 32 <link rel="stylesheet" href="/style.css" />
33
34 <script>
35 const lightTheme = localStorage.getItem("light");
36
37 if (lightTheme === "true") {
38 document.documentElement.classList.add("t-light");
39 }
40 </script>
33</head> 41</head>
34 42
35<body> 43<body>