aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2022-03-15 16:58:32 +0100
committerHiltjo Posthuma <[email protected]>2022-03-19 12:23:16 +0100
commit7c419a8bac26e491206953bf2646ac634296b160 (patch)
tree45b50bdd683960325727ae008eb71f4b147d2b7d
parent037d2c70531b879ced2f013e3d75e95c1b29553b (diff)
downloadstagit-7c419a8bac26e491206953bf2646ac634296b160.tar.gz
stagit-7c419a8bac26e491206953bf2646ac634296b160.zip
add dark mode support for the example stylesheet
-rw-r--r--style.css48
1 files changed, 48 insertions, 0 deletions
diff --git a/style.css b/style.css
index f8780ea..a2ba187 100644
--- a/style.css
+++ b/style.css
@@ -104,3 +104,51 @@ pre a.i:hover,
pre a.d:hover {
text-decoration: none;
}
+
+@media (prefers-color-scheme: dark) {
+ body {
+ background-color: #000;
+ color: #bdbdbd;
+ }
+ hr {
+ border-color: #222;
+ }
+ a {
+ color: #56c8ff;
+ }
+ a:target {
+ background-color: #222;
+ }
+ .desc {
+ color: #aaa;
+ }
+ #blob a {
+ color: #555;
+ }
+ #blob a:target {
+ color: #eee;
+ }
+ #blob a:hover {
+ color: #56c8ff;
+ }
+ pre a.h {
+ color: #00cdcd;
+ }
+ .A,
+ span.i,
+ pre a.i {
+ color: #00cd00;
+ }
+ .D,
+ span.d,
+ pre a.d {
+ color: #cd0000;
+ }
+ #branches tr:hover td,
+ #tags tr:hover td,
+ #index tr:hover td,
+ #log tr:hover td,
+ #files tr:hover td {
+ background-color: #111;
+ }
+}