Skip to content

Commit

Permalink
perf: Add dark mode support to go.html (#1878)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanzhi33 authored Jan 13, 2024
1 parent 4278d88 commit 9c4aa19
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions static/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@
text-decoration: none;
}

body {
transition: background-color 0.5s;
}

@media (prefers-color-scheme: dark) {
* {
color: #f9fafb;
}
body {
background: #111827;
}
}

.blink {
position: fixed;
height: 100%;
Expand Down

0 comments on commit 9c4aa19

Please sign in to comment.