aboutsummaryrefslogtreecommitdiff
path: root/templates/package.html
diff options
context:
space:
mode:
authorChongyi Zheng <git@zcy.dev>2024-03-12 14:02:02 -0400
committerGitHub <noreply@github.com>2024-03-12 11:02:02 -0700
commitd7c76afa342c98220281bdadb7fcf2598e48624b (patch)
tree677287a9c8aa6254644e2c3ce3f8d28582f20557 /templates/package.html
parent9310ba47f78711a783ad6b640e014abab4e5a4cb (diff)
downloadsally-d7c76afa342c98220281bdadb7fcf2598e48624b.tar.gz
Support dark mode theme (#142)
* Support dark mode theme * Add dark mode to 404 and package pages * Fix tests
Diffstat (limited to '')
-rw-r--r--templates/package.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/package.html b/templates/package.html
index 6183c51..281368a 100644
--- a/templates/package.html
+++ b/templates/package.html
@@ -3,6 +3,13 @@
<head>
<meta name="go-import" content="{{ .ModulePath }} {{ .VCS }} https://{{ .RepoURL }}">
<meta http-equiv="refresh" content="0; url={{ .DocURL }}">
+ <style>
+ @media (prefers-color-scheme: dark) {
+ body { background-color: #333; color: #ddd; }
+ a { color: #ddd; }
+ a:visited { color: #bbb; }
+ }
+ </style>
</head>
<body>
Nothing to see here. Please <a href="{{ .DocURL }}">move along</a>.