Skip to content

Commit

Permalink
something
Browse files Browse the repository at this point in the history
  • Loading branch information
0t4u committed Dec 8, 2023
1 parent 04d2c3d commit ae96453
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 2 additions & 0 deletions enhance.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// we try to use as little js as possible

document.addEventListener("DOMContentLoaded", () => {
const copyright = document.getElementById("copyright")
const copyrightText = copyright.innerText.replace("2018", new Date().getFullYear());
Expand Down
20 changes: 11 additions & 9 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
/* dark mode by default */
:root {
--background-color: 250, 249, 246;
--text-color: 0, 0, 0;
--background-color: 28, 27, 34;
--text-color: 255, 255, 255;
--nav-color: var(--text-color);
--nav-hover-color: var(--nav-color), 0.7;
--highlight-warn-color: 255, 225, 145;
--highlight-info-color: 150, 200, 255;
--highlight-warn-color: 200, 160, 45;
--highlight-info-color: 40, 100, 200;
}

@media screen and (prefers-color-scheme: dark) {
/* light mode */
@media screen and (prefers-color-scheme: light) {
:root {
--background-color: 28, 27, 34;
--text-color: 255, 255, 255;
--highlight-warn-color: 200, 160, 45;
--highlight-info-color: 40, 100, 200;
--background-color: 250, 249, 246;
--text-color: 0, 0, 0;
--highlight-warn-color: 255, 225, 145;
--highlight-info-color: 150, 200, 255;
}
}

Expand Down

0 comments on commit ae96453

Please sign in to comment.