diff options
author | EuAndreh <eu@euandre.org> | 2023-03-23 08:16:11 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-23 08:25:22 -0300 |
commit | 123754dae6394a409936e7566ce0059b90e01369 (patch) | |
tree | 1a8fedf242d9380bd691c6b7a4aeb4b0cda0b789 /src/bin/paku.in | |
parent | git mv src/bin/paku src/bin/paku.in (diff) | |
download | package-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-x | src/bin/paku.in | 34 |
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 |