Reports: Support dark mode (#4198)

This commit is contained in:
Abe Jellinek 2024-06-04 02:02:35 -04:00 committed by GitHub
parent fab20327a5
commit 7eb4c1f6f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 4 deletions

View file

@ -1,5 +1,8 @@
body {
background: white;
color-scheme: light dark;
/* These should be the defaults, but just in case: */
background: Canvas;
color: CanvasText;
}
a {

View file

@ -2,7 +2,6 @@ body {
font: 12pt "Times New Roman", Times, Georgia, serif;
margin: 0;
width: auto;
color: black;
}
/* Page Breaks (page-break-inside only recognized by Opera) */
@ -22,6 +21,6 @@ h2 {
}
a {
color: #000;
color: inherit;
text-decoration: none;
}

View file

@ -15,7 +15,7 @@ p {
line-height: 1.5em;
}
a:link, a:visited {
a:any-link {
color: #900;
}
@ -23,6 +23,16 @@ a:hover, a:active {
color: #777;
}
@media (prefers-color-scheme: dark) {
a:any-link {
color: #f00;
}
a:hover, a:active {
color: #999;
}
}
ul.report {
font-size: 1.4em;