Added background color animation for selected sources.

This commit is contained in:
Benjamin A. Shelton 2026-06-29 13:56:23 -06:00
commit 8a0118d983
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

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