From 5e522b54f12b628589a81754e5cb4336c88c5e12 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 27 May 2024 08:06:06 +0300 Subject: [PATCH] main.scss: fix mobile navigation --- css/main.scss | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/css/main.scss b/css/main.scss index bf255009c..e8e12ddff 100644 --- a/css/main.scss +++ b/css/main.scss @@ -65,3 +65,23 @@ $on-laptop: 800px; "layout", "syntax-highlighting" ; + +// Overrides for dark themes +@media (prefers-color-scheme: dark) { + .site-nav { + color-scheme: only dark !important; + color: #ffffff !important; + background-color: #1c1b22 !important; + border: 1px solid #ffffff !important; + } +} + +// Overrides for light themes +@media (prefers-color-scheme: light) { + .site-nav { + color-scheme: only light !important; + color: #000000 !important; + background-color: #ffffff !important; + border: 1px solid #000000 !important; + } +}