Added background color animation for selected sources.
This commit is contained in:
parent
8706e233ef
commit
8a0118d983
1 changed files with 29 additions and 4 deletions
|
|
@ -250,15 +250,23 @@ article#notes-page {
|
||||||
list-style-type: revert;
|
list-style-type: revert;
|
||||||
@apply ml-4;
|
@apply ml-4;
|
||||||
}
|
}
|
||||||
|
ol li::marker {
|
||||||
|
@apply text-neutral-500;
|
||||||
|
}
|
||||||
li {
|
li {
|
||||||
@apply ml-4 mt-2 mb-2;
|
@apply ml-4 mt-2 mb-2;
|
||||||
}
|
}
|
||||||
ol li a.source {
|
ol li a.source {
|
||||||
@apply border-none bg-none hover:bg-none;
|
background-color: transparent;
|
||||||
@apply dark:border-none dark:bg-none dark:hover:bg-none;
|
@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:target {
|
||||||
|
animation-duration: 1.5s;
|
||||||
|
animation-name: color-cycle;
|
||||||
|
&:where(.dark, .dark *) {
|
||||||
|
animation-name: color-cycle-dark;
|
||||||
}
|
}
|
||||||
ol li a.source:active {
|
|
||||||
background: red;
|
|
||||||
}
|
}
|
||||||
ol li a.source:hover {
|
ol li a.source:hover {
|
||||||
@apply bg-none;
|
@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 {
|
nav#pagination {
|
||||||
@apply flex items-center justify-center mt-6 mb-6 text-xl transition-colors duration-500;
|
@apply flex items-center justify-center mt-6 mb-6 text-xl transition-colors duration-500;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue