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 { body {
background: white; color-scheme: light dark;
/* These should be the defaults, but just in case: */
background: Canvas;
color: CanvasText;
} }
a { a {

View file

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

View file

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