feat: Keep :target highlighted

This commit is contained in:
daudix
2024-02-03 20:40:12 +03:00
parent 0d1de3dfe8
commit 2d5a0f0c7b

View File

@ -47,13 +47,17 @@ body {
:target {
scroll-margin-top: 15vh;
animation: var(--transition-long) 1s highlight-in-out;
color: var(--primary-color);
@keyframes highlight-in-out {
50% {
color: var(--primary-color);
letter-spacing: 0.125rem;
}
}
@media (prefers-reduced-motion) {
animation: none;
}
}
// LAYOUT