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; }