diff options
| author | Chongyi Zheng <git@zcy.dev> | 2024-03-12 14:02:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-12 11:02:02 -0700 |
| commit | d7c76afa342c98220281bdadb7fcf2598e48624b (patch) | |
| tree | 677287a9c8aa6254644e2c3ce3f8d28582f20557 /templates/index.html | |
| parent | 9310ba47f78711a783ad6b640e014abab4e5a4cb (diff) | |
| download | sally-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/index.html | 8 |
1 files changed, 8 insertions, 0 deletions
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"> |