feat: Keep :target highlighted
This commit is contained in:
@ -47,13 +47,17 @@ body {
|
|||||||
:target {
|
:target {
|
||||||
scroll-margin-top: 15vh;
|
scroll-margin-top: 15vh;
|
||||||
animation: var(--transition-long) 1s highlight-in-out;
|
animation: var(--transition-long) 1s highlight-in-out;
|
||||||
|
color: var(--primary-color);
|
||||||
|
|
||||||
@keyframes highlight-in-out {
|
@keyframes highlight-in-out {
|
||||||
50% {
|
50% {
|
||||||
color: var(--primary-color);
|
|
||||||
letter-spacing: 0.125rem;
|
letter-spacing: 0.125rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion) {
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// LAYOUT
|
// LAYOUT
|
||||||
|
Reference in New Issue
Block a user