From d09aaa6f0c33d4c22f383e93bf389e821f4c76c4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 27 Apr 2021 21:55:20 +0200 Subject: add a bit of dark mode --- bin/pyggle | 2 +- share/css/dark.css | 14 ++++++++++++++ share/css/light.css | 3 +++ share/html_start | 25 +++++++++++++++++++++++++ 4 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 share/css/dark.css create mode 100644 share/css/light.css diff --git a/bin/pyggle b/bin/pyggle index e7418b5..781863e 100755 --- a/bin/pyggle +++ b/bin/pyggle @@ -146,7 +146,7 @@ def copy_files(base_dir): imgwidth = f"{args.size}px" imgheight = f"{args.size}px" - css_files = ["glightbox.min.css"] + css_files = ["glightbox.min.css", "light.css", "dark.css"] js_files = ["glightbox.min.js"] for css_file in css_files: diff --git a/share/css/dark.css b/share/css/dark.css new file mode 100644 index 0000000..64ea7c2 --- /dev/null +++ b/share/css/dark.css @@ -0,0 +1,14 @@ +body, html { + color: #eeeeee; + background-color: #333333; +} + +a { + color: #9999ff; +} + +.glightbox-clean +.gslide-description { + color: #eeeeee!important; + background-color: #333333!important; +} diff --git a/share/css/light.css b/share/css/light.css new file mode 100644 index 0000000..0fb96c9 --- /dev/null +++ b/share/css/light.css @@ -0,0 +1,3 @@ +a { + color: #000099; +} diff --git a/share/html_start b/share/html_start index 0e21831..68be715 100644 --- a/share/html_start +++ b/share/html_start @@ -5,8 +5,33 @@ + +
-- cgit v1.2.3