From 7292affc04b857f348d39c24ddd610f2a497dd8e Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Sat, 25 Apr 2026 00:23:39 +0300 Subject: [PATCH] fix menu dark colors --- src/components/Posts/PostMenu.astro | 6 ++++++ src/styles/variables.css | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/components/Posts/PostMenu.astro b/src/components/Posts/PostMenu.astro index 363e25f..12ffb62 100644 --- a/src/components/Posts/PostMenu.astro +++ b/src/components/Posts/PostMenu.astro @@ -248,6 +248,12 @@ const tocHeadings = headings.filter((h) => h.depth === 2 || h.depth === 3); .post-menu.is-open { display: block; } + + :global(html.dark) .post-menu-mobile-toggle, + :global(html.dark) .post-menu { + background: var(--background-color-dark); + color: var(--text-color-dark); + } } diff --git a/src/styles/variables.css b/src/styles/variables.css index 5479073..8b14afc 100644 --- a/src/styles/variables.css +++ b/src/styles/variables.css @@ -3,4 +3,7 @@ --deep-red: #ef5a6f; --background-color: #f9f2ed; --text-color: #0E2F56; + + --background-color-dark: #1e1e1e; + --text-color-dark: #e6e6e6; } \ No newline at end of file