From 05694e9091df296d5d474401e3373c178e48623a Mon Sep 17 00:00:00 2001 From: Raymond Kneipp Date: Tue, 18 Oct 2022 11:26:31 -0400 Subject: [PATCH 1/2] change logo, body, and header based on color preference Signed-off-by: Raymond Kneipp --- static/css/main.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/static/css/main.css b/static/css/main.css index 611cb18..a8960b3 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -531,6 +531,13 @@ body { color: #2C2C2C; } +@media (prefers-color-scheme: dark) { + body { + color: #d3d3d3; + background: #000; + } +} + body.landing h1 { font-size: 200%; margin-bottom: 5px; @@ -570,6 +577,12 @@ div.header-menu { border-top: solid 1px #2C2C2C; } +@media (prefers-color-scheme: dark) { + .menu-container { + border-color: #d3d3d3 + } +} + .menu-container li { font-family: 'Montserrat', sans-serif; font-weight: normal; @@ -580,6 +593,12 @@ header { border-bottom: solid 1px #B8E1FF; } +@media (prefers-color-scheme: dark) { + header { + border-color: #007edb; + } +} + #eye-catch { background-color: #EFEFEF; } From 32e1f41f1c327666cb94ea24def60d6803b714dd Mon Sep 17 00:00:00 2001 From: Raymond Kneipp Date: Tue, 18 Oct 2022 13:35:17 -0400 Subject: [PATCH 2/2] feat: dark theme Signed-off-by: Raymond Kneipp --- .hugo_build.lock | 0 layouts/partials/header.html | 8 +- static/css/main.css | 111 +++++++++++++++++++++++++- static/img/AsahiLinux_logo_darkbg.svg | 1 + 4 files changed, 118 insertions(+), 2 deletions(-) create mode 100644 .hugo_build.lock create mode 120000 static/img/AsahiLinux_logo_darkbg.svg diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 4e3b48e..bc03172 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -29,7 +29,13 @@