Skip to content

Commit

Permalink
swap orage colors
Browse files Browse the repository at this point in the history
  • Loading branch information
lucat1 committed May 17, 2022
1 parent f5f5adc commit 792692f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion statik.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func join(rel string) string {

func header(rel string) string {
path := path.Join(baseUrl.Path + rel)
str := "<html><head><meta name='viewport' content='width=device-width'><style>:root{--b:#fbf1c7;--f:#282828;--d:#fe8019;}@media(prefers-color-scheme:dark){:root{--b:#282828;--f:#fbf1c7;--d:#af3a03;}}*{color:var(--f);background:var(--b);}body{font-size:16px;font-family:monospace;margin:0;padding:1.5rem;line-height:1.8;}a{text-decoration:none;border-bottom:1px solid;}.d{color:var(--d);}</style><title>Index of " + path + "</title></head><body><h1>Index of " + path + "</h1><hr><pre>"
str := "<html><head><meta name='viewport' content='width=device-width'><style>:root{--b:#fbf1c7;--f:#282828;--d:#af3a03}@media (prefers-color-scheme:dark){:root{--b:#282828;--f:#fbf1c7;--d:#fe8019}}*{color:var(--f);background:var(--b)}body{font-size:16px;font-family:monospace;margin:0;padding:1.5rem;line-height:1.8}a{text-decoration:none;border-bottom:1px solid}.d{color:var(--d)}</style><title>Index of " + path + "</title></head><body><h1>Index of " + path + "</h1><hr><pre>"
if rel != "/" {
str += "<a href=\"" + join(rel+"/..") + "\" class=\"d\">..</a>\n"
}
Expand Down
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
:root {
--b: #fbf1c7;
--f: #282828;
--d: #fe8019;
--d: #af3a03;
}

@media (prefers-color-scheme: dark) {
:root {
--b: #282828;
--f: #fbf1c7;
--d: #af3a03;
--d: #fe8019;
}
}

Expand Down

0 comments on commit 792692f

Please sign in to comment.