From 861316b21c521f5cc6c30cb0616b055c85650750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=87etinkaya?= Date: Tue, 31 Dec 2024 21:44:17 +0300 Subject: [PATCH] feat(presentation): refactor dark mode styles and improve footer component structure --- .../pages/_components/posts/post-page.astro | 38 +++---- .../layouts/components/FooterSection.astro | 105 +++++++----------- 2 files changed, 61 insertions(+), 82 deletions(-) diff --git a/src/presentation/src/pages/_components/posts/post-page.astro b/src/presentation/src/pages/_components/posts/post-page.astro index 413c834..e1e6d72 100644 --- a/src/presentation/src/pages/_components/posts/post-page.astro +++ b/src/presentation/src/pages/_components/posts/post-page.astro @@ -209,62 +209,62 @@ const structuredData = { } /* Dark mode styles */ - :global(.dark) .ac-content { + html.dark .ac-content { color: #e5e5e5; } - :global(.dark) .ac-content h1, - :global(.dark) .ac-content h2, - :global(.dark) .ac-content h3, - :global(.dark) .ac-content h4, - :global(.dark) .ac-content h5, - :global(.dark) .ac-content h6 { + html.dark .ac-content h1, + html.dark .ac-content h2, + html.dark .ac-content h3, + html.dark .ac-content h4, + html.dark .ac-content h5, + html.dark .ac-content h6 { color: #f3f4f6; } - :global(.dark) .ac-content p, - :global(.dark) .ac-content ul, - :global(.dark) .ac-content ol { + html.dark .ac-content p, + html.dark .ac-content ul, + html.dark .ac-content ol { color: #d1d5db; } - :global(.dark) .ac-content a { + html.dark .ac-content a { color: #60a5fa; } - :global(.dark) .ac-content a:hover { + html.dark .ac-content a:hover { color: #93c5fd; } - :global(.dark) .ac-content blockquote { + html.dark .ac-content blockquote { border-left-color: #4b5563; background-color: #1f2937; color: #e5e5e5; } - :global(.dark) .ac-content table { + html.dark .ac-content table { border-color: #374151; } - :global(.dark) .ac-content th { + html.dark .ac-content th { background-color: #374151; color: #f3f4f6; border-color: #4b5563; } - :global(.dark) .ac-content td { + html.dark .ac-content td { border-color: #4b5563; } - :global(.dark) .ac-content tr:nth-child(even) { + html.dark .ac-content tr:nth-child(even) { background-color: #1f2937; } - :global(.dark) .ac-content tr:hover { + html.dark .ac-content tr:hover { background-color: #374151; } - :global(.dark) .ac-content img { + html.dark .ac-content img { opacity: 0.9; } diff --git a/src/presentation/src/shared/layouts/components/FooterSection.astro b/src/presentation/src/shared/layouts/components/FooterSection.astro index 46df409..faaa281 100644 --- a/src/presentation/src/shared/layouts/components/FooterSection.astro +++ b/src/presentation/src/shared/layouts/components/FooterSection.astro @@ -47,68 +47,47 @@ const footerSections = [