From 8a0118d983917e6c72cabda35408447f924e8347 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 29 Jun 2026 13:56:23 -0600 Subject: [PATCH] Added background color animation for selected sources. --- src/styles/global.css | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/src/styles/global.css b/src/styles/global.css index 6f78280..bade67e 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -250,15 +250,23 @@ article#notes-page { list-style-type: revert; @apply ml-4; } + ol li::marker { + @apply text-neutral-500; + } li { @apply ml-4 mt-2 mb-2; } ol li a.source { - @apply border-none bg-none hover:bg-none; - @apply dark:border-none dark:bg-none dark:hover:bg-none; + background-color: transparent; + @apply border-none bg-none hover:bg-none hover:text-black; + @apply dark:border-none dark:bg-none dark:hover:bg-none dark:hover:text-white; } - ol li a.source:active { - background: red; + ol li a.source:target { + animation-duration: 1.5s; + animation-name: color-cycle; + &:where(.dark, .dark *) { + animation-name: color-cycle-dark; + } } ol li a.source:hover { @apply bg-none; @@ -287,6 +295,23 @@ article#notes-page { } } +@keyframes color-cycle { + 0% { + background-color: oklch(87.9% 0.169 91.605); + } + 100% { + background-color: transparent; + } +} +@keyframes color-cycle-dark { + 0% { + background-color: oklch(69.923% 0.17731 151.821); + } + 100% { + background-color: transparent; + } +} + nav#pagination { @apply flex items-center justify-center mt-6 mb-6 text-xl transition-colors duration-500; }