Add dark mode
This commit is contained in:
BIN
internal/action/static/logo-dark.png
Normal file
BIN
internal/action/static/logo-dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 204 B |
@@ -1,7 +1,28 @@
|
||||
body {
|
||||
background: #eff;
|
||||
background-image: url(/tile.png?a=static);
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
background: #100;
|
||||
background-image: url(/tile-dark.png?a=static);
|
||||
color: #bbb;
|
||||
}
|
||||
a:link {
|
||||
color: #48c;
|
||||
}
|
||||
input, textarea {
|
||||
background: #000;
|
||||
color: #bbb;
|
||||
border-color: #444;
|
||||
}
|
||||
.hljs {
|
||||
background: #000;
|
||||
color: #bbb;
|
||||
}
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 98%;
|
||||
}
|
||||
|
||||
BIN
internal/action/static/tile-dark.png
Normal file
BIN
internal/action/static/tile-dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 156 B |
@@ -11,7 +11,13 @@
|
||||
<body>
|
||||
|
||||
<div>
|
||||
<a href="/"><img src="/logo.png?a=static" border="0" alt="{{.SiteName}}" /></a>
|
||||
<a href="/">
|
||||
<picture>
|
||||
<source srcset="/logo.png?a=static" media="(prefers-color-scheme: light)">
|
||||
<source srcset="/logo-dark.png?a=static" media="(prefers-color-scheme: dark)">
|
||||
<img src="/logo.png?a=static" alt="{{.SiteName}}">
|
||||
</picture>
|
||||
</a>
|
||||
<a href="/">Back</a>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/style.css?a=static" />
|
||||
<link rel="icon" type="image/png" href="/icon.png?a=static" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
|
||||
<script>hljs.highlightAll();</script>
|
||||
<script>MathJax = { options: { processHtmlClass: 'mathjax', ignoreHtmlClass: '.*' } };</script>
|
||||
@@ -29,7 +29,13 @@
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a href="/"><img src="/logo.png?a=static" border="0" alt="{{.SiteName}}" /></a>
|
||||
<a href="/">
|
||||
<picture>
|
||||
<source srcset="/logo.png?a=static" media="(prefers-color-scheme: light)">
|
||||
<source srcset="/logo-dark.png?a=static" media="(prefers-color-scheme: dark)">
|
||||
<img src="/logo.png?a=static" alt="{{.SiteName}}">
|
||||
</picture>
|
||||
</a>
|
||||
<a href="/{{.Name | pathescape}}">Cancel</a>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/style.css?a=static" />
|
||||
<link rel="icon" type="image/png" href="/icon.png?a=static" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
|
||||
<script>hljs.highlightAll();</script>
|
||||
<script>MathJax = { options: { processHtmlClass: 'mathjax', ignoreHtmlClass: '.*' } };</script>
|
||||
@@ -17,7 +17,13 @@
|
||||
<body>
|
||||
|
||||
<div>
|
||||
<a href="/"><img src="/logo.png?a=static" border="0" alt="{{.SiteName}}" /></a>
|
||||
<a href="/">
|
||||
<picture>
|
||||
<source srcset="/logo.png?a=static" media="(prefers-color-scheme: light)">
|
||||
<source srcset="/logo-dark.png?a=static" media="(prefers-color-scheme: dark)">
|
||||
<img src="/logo.png?a=static" alt="{{.SiteName}}">
|
||||
</picture>
|
||||
</a>
|
||||
<a href="/{{.Name | pathescape}}">Current</a>
|
||||
<a href="/{{.Name | pathescape}}?a=revs">Rev.</a>
|
||||
</div>
|
||||
|
||||
@@ -12,7 +12,13 @@
|
||||
<body>
|
||||
|
||||
<div>
|
||||
<a href="/"><img src="/logo.png?a=static" border="0" alt="{{.SiteName}}" /></a>
|
||||
<a href="/">
|
||||
<picture>
|
||||
<source srcset="/logo.png?a=static" media="(prefers-color-scheme: light)">
|
||||
<source srcset="/logo-dark.png?a=static" media="(prefers-color-scheme: dark)">
|
||||
<img src="/logo.png?a=static" alt="{{.SiteName}}">
|
||||
</picture>
|
||||
</a>
|
||||
<a href="/{{.Name | pathescape}}">Current</a>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -30,7 +30,13 @@ Content Search
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a href="/"><img src="/logo.png?a=static" border="0" alt="{{.SiteName}}" /></a>
|
||||
<a href="/">
|
||||
<picture>
|
||||
<source srcset="/logo.png?a=static" media="(prefers-color-scheme: light)">
|
||||
<source srcset="/logo-dark.png?a=static" media="(prefers-color-scheme: dark)">
|
||||
<img src="/logo.png?a=static" alt="{{.SiteName}}">
|
||||
</picture>
|
||||
</a>
|
||||
<a href="/">Back</a>
|
||||
<a href="/?a=all">All</a>
|
||||
</div>
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/style.css?a=static" />
|
||||
<link rel="icon" type="image/png" href="/icon.png?a=static" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
|
||||
<script>hljs.highlightAll();</script>
|
||||
<script>MathJax = { options: { processHtmlClass: 'mathjax', ignoreHtmlClass: '.*' } };</script>
|
||||
@@ -24,7 +24,13 @@
|
||||
<body>
|
||||
|
||||
<div>
|
||||
<a href="/"><img src="/logo.png?a=static" border="0" alt="{{.SiteName}}" /></a>
|
||||
<a href="/">
|
||||
<picture>
|
||||
<source srcset="/logo.png?a=static" media="(prefers-color-scheme: light)">
|
||||
<source srcset="/logo-dark.png?a=static" media="(prefers-color-scheme: dark)">
|
||||
<img src="/logo.png?a=static" alt="{{.SiteName}}">
|
||||
</picture>
|
||||
</a>
|
||||
<a href="/{{.Name | pathescape}}?a=edit">Edit</a>
|
||||
<a href="/{{.Name | pathescape}}?a=revs">Rev.</a>
|
||||
<a href="/?a=search">Search</a>
|
||||
|
||||
Reference in New Issue
Block a user