From 123754dae6394a409936e7566ce0059b90e01369 Mon Sep 17 00:00:00 2001
From: EuAndreh
Date: Thu, 23 Mar 2023 08:16:11 -0300
Subject: src/bin/paku.in: Add dark-mode CSS
---
src/bin/paku.in | 34 +++++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)
(limited to 'src')
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;
+ }
+ }
@@ -635,7 +666,8 @@ sub emit_html() {
Include my public key for validating the repository
signatures:
- \$ wget -qO- $json->{'base-url'}/debian/public-key.asc | sudo tee /etc/apt/trusted.gpg.d/$json->{namespace}.asc
+ \$ wget -qO- $json->{'base-url'}/debian/public-key.asc |
+ sudo tee /etc/apt/trusted.gpg.d/$json->{namespace}.asc
Afterwards, include this repository to the list of
repositories that apt
uses for sources
--
cgit v1.2.3