aboutsummaryrefslogtreecommitdiff
path: root/src/infrastructure/scripts/report.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-28 11:16:03 -0300
committerEuAndreh <eu@euandre.org>2023-03-28 11:16:03 -0300
commit3e3add45e429f6a7118d8fafde2dcb962383b925 (patch)
treea7fe2c0fc8992a7e1a9f6f4b9e843fecb48c7140 /src/infrastructure/scripts/report.sh
parentreport.sh: Use "find | while read" over "for `find`" (diff)
downloadtoph-3e3add45e429f6a7118d8fafde2dcb962383b925.tar.gz
toph-3e3add45e429f6a7118d8fafde2dcb962383b925.tar.xz
report.sh: Add CSS dark mode support
Notes
See CI logs with: git notes --ref=refs/notes/ci-logs show 3e3add45e429f6a7118d8fafde2dcb962383b925 git notes --ref=refs/notes/ci-data show 3e3add45e429f6a7118d8fafde2dcb962383b925 Exit status: 0 Duration: 21
Diffstat (limited to 'src/infrastructure/scripts/report.sh')
-rwxr-xr-xsrc/infrastructure/scripts/report.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/infrastructure/scripts/report.sh b/src/infrastructure/scripts/report.sh
index acb6b7f..c766d41 100755
--- a/src/infrastructure/scripts/report.sh
+++ b/src/infrastructure/scripts/report.sh
@@ -178,6 +178,29 @@ done
ol {
list-style-type: disc;
}
+
+ 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>