aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJacob Oaks <jacoboaks.8@gmail.com>2024-04-29 14:56:56 -0400
committerGitHub <noreply@github.com>2024-04-29 14:56:56 -0400
commita00b837ec45a226977f66cbe7b40a0ea692f41e4 (patch)
tree3118bd64a7eb1810721f538c79bc63a47df30e0f /templates
parent5683eee3e5bd1cf1d2a09ed80c8af7b48d0d5d2a (diff)
parent5d9ac57635dbc05059aaa9e94b8c76a5da3ca5bb (diff)
downloadsally-a00b837ec45a226977f66cbe7b40a0ea692f41e4.tar.gz
Merge branch 'master' into dependabot/go_modules/github.com/stretchr/testify-1.9.0
Diffstat (limited to '')
-rw-r--r--templates/404.html5
-rw-r--r--templates/index.html8
-rw-r--r--templates/package.html7
3 files changed, 20 insertions, 0 deletions
diff --git a/templates/404.html b/templates/404.html
index ab5b34a..1915091 100644
--- a/templates/404.html
+++ b/templates/404.html
@@ -2,6 +2,11 @@
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" />
+ <style>
+ @media (prefers-color-scheme: dark) {
+ body { background-color: #333; color: #ddd; }
+ }
+ </style>
</head>
<body>
<div class="container">
diff --git a/templates/index.html b/templates/index.html
index 8014921..53a41a2 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -16,6 +16,14 @@
.table-header { display: block; }
.inline-header { display: none; }
}
+
+ @media (prefers-color-scheme: dark) {
+ body { background-color: #333; color: #ddd; }
+ a { color: #ddd; }
+ a:visited { color: #bbb; }
+ .description { color: #bbb; }
+ .separator { border-color: #666; }
+ }
</style>
<body>
<div class="container">
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>.