Added darkmode, but it is not persistent yet.
This commit is contained in:
@@ -100,4 +100,11 @@ h2 a {
|
||||
margin-right: 0.3em;
|
||||
color: $link;
|
||||
}
|
||||
.dark-mode, .dark-mode * {
|
||||
background-color: $black-ter !important;
|
||||
color: white !important;
|
||||
a {
|
||||
color: $link !important;
|
||||
}
|
||||
}
|
||||
// /Custom styles
|
||||
@@ -0,0 +1,5 @@
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
if (window.location.search.indexOf("darkmode=true") > -1) {
|
||||
document.getElementById("content").classList.add("dark-mode");
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user