From 2d5a0f0c7bc17c0b1dfee33cad27f74c9c20a329 Mon Sep 17 00:00:00 2001 From: daudix Date: Sat, 3 Feb 2024 20:40:12 +0300 Subject: [PATCH] feat: Keep :target highlighted --- sass/_main.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sass/_main.scss b/sass/_main.scss index 649c2aa..a09c306 100644 --- a/sass/_main.scss +++ b/sass/_main.scss @@ -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