Updated footer for dark/light mode.

This commit is contained in:
Benjamin A. Shelton 2026-06-22 15:04:11 -06:00
commit ddc614c12b
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -2,6 +2,8 @@
@source "../layouts/**/*.astro"; @source "../layouts/**/*.astro";
@source "../pages/**/*.astro"; @source "../pages/**/*.astro";
@custom-variant dark (&:where(.dark, .dark *));
@theme { @theme {
--color-sunday-theme: #28303c; --color-sunday-theme: #28303c;
@ -65,6 +67,51 @@ header {
} }
footer { 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; @apply bg-sunday-theme mt-4 p-8 text-gray-500 text-sm;
a { a {
border-bottom: 5px; border-bottom: 5px;
@ -80,7 +127,7 @@ footer {
ul > li > a { ul > li > a {
@apply inline border-gray-600 hover:border-blue-600 hover:text-gray-200; @apply inline border-gray-600 hover:border-blue-600 hover:text-gray-200;
} }
} }*/
#notes-list { #notes-list {
@apply mx-auto lg:max-w-7xl xl:max-w-7xl 2xl:max-w-7xl; @apply mx-auto lg:max-w-7xl xl:max-w-7xl 2xl:max-w-7xl;