Skip to content

Commit

Permalink
src: directory listing dark theme (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
flakey5 authored Dec 3, 2023
1 parent a262491 commit d85d61e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
18 changes: 17 additions & 1 deletion src/templates/directoryListing.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
<html>
<head><title>Index of {{pathname}}</title></head>
<head>
<title>Index of {{pathname}}</title>
<style>
@media (prefers-color-scheme: dark) {
body {
color: white;
background-color: #1c1b22;
}
a {
color: #3391ff;
}
a:visited {
color: #C63B65;
}
}
</style>
</head>
<body>
<h1>Index of {{pathname}}</h1><hr><pre><a href="../">../</a>
{{#each entries}}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/directoryListing.out.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion tests/e2e/test-data/expected-html/dist.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
<!DOCTYPE html><html>
<head><title>Index of /dist/</title></head>
<head>
<title>Index of /dist/</title>
<style>
@media (prefers-color-scheme: dark) {
body {
color: white;
background-color: #1c1b22;
}
a {
color: #3391ff;
}
a:visited {
color: #C63B65;
}
}
</style>
</head>
<body>
<h1>Index of /dist/</h1><hr><pre><a href="../">../</a>
<a href="latest/">latest/</a> - -
Expand Down

0 comments on commit d85d61e

Please sign in to comment.