From ddc614c12b409b90d26afdaaa82a44498ccdc497 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 22 Jun 2026 15:04:11 -0600 Subject: [PATCH] Updated footer for dark/light mode. --- src/styles/global.css | 49 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/src/styles/global.css b/src/styles/global.css index 6bd8bab..0e9f3b4 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -2,6 +2,8 @@ @source "../layouts/**/*.astro"; @source "../pages/**/*.astro"; +@custom-variant dark (&:where(.dark, .dark *)); + @theme { --color-sunday-theme: #28303c; @@ -65,6 +67,51 @@ header { } footer { + @apply bg-sunday-theme font-mono mt-4 p-8 text-gray-500 text-sm; + @apply dark:bg-neutral-950; + + ul li { + @apply block mb-4; + } + + ul li a { + @apply border-b-2 border-gray-500 hover:text-gray-300 hover:border-gray-300; + } + + button { + @apply border-gray-500 rounded-md p-4 font-mono hover:bg-gray-700 hover:border-gray-400 hover:text-gray-400; + border-style: solid; + border-width: 1px; + } + + button[data-toggle-theme] svg { + @apply text-amber-500 inline mr-4 transition-transform duration-500; + transform: rotate(90deg); + filter: drop-shadow(0px 0px 4px var(--color-amber-500)); + } + + button[data-toggle-theme]:first-child:after { + content: "light"; + @apply align-middle; + } +} + +.dark footer { + button { + @apply border-gray-700 hover:bg-gray-900; + } + + button[data-toggle-theme]:first-child:after { + content: "dark"; + } + button[data-toggle-theme] svg { + @apply text-neutral-300; + transform: rotate(270deg); + filter: drop-shadow(0px 0px 4px var(--color-neutral-300)); + } +} + +/*footer { @apply bg-sunday-theme mt-4 p-8 text-gray-500 text-sm; a { border-bottom: 5px; @@ -80,7 +127,7 @@ footer { ul > li > a { @apply inline border-gray-600 hover:border-blue-600 hover:text-gray-200; } -} +}*/ #notes-list { @apply mx-auto lg:max-w-7xl xl:max-w-7xl 2xl:max-w-7xl;