diff options
author | EuAndreh <eu@euandre.org> | 2023-03-28 11:16:03 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-28 11:16:03 -0300 |
commit | 3e3add45e429f6a7118d8fafde2dcb962383b925 (patch) | |
tree | a7fe2c0fc8992a7e1a9f6f4b9e843fecb48c7140 /src | |
parent | report.sh: Use "find | while read" over "for `find`" (diff) | |
download | server-3e3add45e429f6a7118d8fafde2dcb962383b925.tar.gz server-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')
-rwxr-xr-x | src/infrastructure/scripts/report.sh | 23 |
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> |