From 6fabb9d0fc92154fdef4d20f241f8bdc510e2dae Mon Sep 17 00:00:00 2001 From: Ying Zhong <0x00eeee@gmail.com> Date: Thu, 13 Aug 2026 10:17:52 +0800 Subject: [PATCH] Improve extension highlight effect --- scripts/assets/index.css | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/assets/index.css b/scripts/assets/index.css index 8412d0f..fd6955e 100644 --- a/scripts/assets/index.css +++ b/scripts/assets/index.css @@ -248,18 +248,18 @@ main { } .card.current-target { - animation: target-highlight 1.6s ease-out; + animation: target-highlight 2s ease-in-out; } @keyframes target-highlight { - 0%, 35% { - border-color: var(--accent); - box-shadow: 0 0 0 1px var(--accent); + 0%, 100% { + border-color: var(--line); + box-shadow: 0 0 0 0 transparent, var(--shadow); } - 100% { - border-color: var(--line); - box-shadow: 0 0 0 0 transparent; + 25%, 75% { + border-color: var(--accent); + box-shadow: 0 0 0 1px var(--accent), var(--shadow); } }