aboutsummaryrefslogtreecommitdiff
path: root/src/bin/paku.in
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-23 08:16:11 -0300
committerEuAndreh <eu@euandre.org>2023-03-23 08:25:22 -0300
commit123754dae6394a409936e7566ce0059b90e01369 (patch)
tree1a8fedf242d9380bd691c6b7a4aeb4b0cda0b789 /src/bin/paku.in
parentgit mv src/bin/paku src/bin/paku.in (diff)
downloadpackage-repository-123754dae6394a409936e7566ce0059b90e01369.tar.gz
package-repository-123754dae6394a409936e7566ce0059b90e01369.tar.xz
src/bin/paku.in: Add dark-mode CSS
Diffstat (limited to 'src/bin/paku.in')
-rwxr-xr-xsrc/bin/paku.in34
1 files changed, 33 insertions, 1 deletions
diff --git a/src/bin/paku.in b/src/bin/paku.in
index 9305ec9..7c240f7 100755
--- a/src/bin/paku.in
+++ b/src/bin/paku.in
@@ -518,6 +518,37 @@ sub emit_html() {
li {
margin-top: 2em;
}
+
+ pre {
+ overflow: auto;
+ white-space: pre;
+ margin: 5px;
+ padding: 5px;
+ border-radius: 5px;
+ }
+
+ pre, code {
+ background-color: #ddd;
+ }
+
+ \@media(prefers-color-scheme: dark) {
+ :root {
+ color: white;
+ background-color: black;
+ }
+
+ a {
+ color: hsl(211, 100%, 60%);
+ }
+
+ a:visited {
+ color: hsl(242, 100%, 80%);
+ }
+
+ pre, code {
+ background-color: #222;
+ }
+ }
</style>
</head>
<body>
@@ -635,7 +666,8 @@ sub emit_html() {
Include my public key for validating the repository
signatures:
</p>
- <pre><code>\$ wget -qO- $json->{'base-url'}/debian/public-key.asc | sudo tee /etc/apt/trusted.gpg.d/$json->{namespace}.asc</code></pre>
+ <pre><code>\$ wget -qO- $json->{'base-url'}/debian/public-key.asc |
+ sudo tee /etc/apt/trusted.gpg.d/$json->{namespace}.asc</code></pre>
<p>
Afterwards, include this repository to the list of
repositories that <code>apt</code> uses for sources