From daa6adb89259c2a1a72b219d02ad7fc1373b44b1 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Wed, 25 Oct 2023 19:03:52 +0100 Subject: Removes box shadow transition on link hover --- scss/modules/link.scss | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'scss') diff --git a/scss/modules/link.scss b/scss/modules/link.scss index d225e9d..dfcabcf 100644 --- a/scss/modules/link.scss +++ b/scss/modules/link.scss @@ -10,28 +10,18 @@ color 100ms, text-decoration-color 100ms, text-decoration-thickness 100ms, - text-underline-offset 100ms, - border-color 100ms, - text-shadow 100ms; + border-color 100ms; } .link:is(:hover, :focus, :focus-visible, :focus-within), .group-hover:is(:hover, :focus, :focus-visible, :focus-within) .link { text-decoration-color: currentColor; - text-decoration-thickness: calc(4 * var(--relative-eighth-rem)); - text-underline-offset: calc(3 * var(--relative-eighth-rem)); - text-shadow: - 0 1px 0 currentColor, - 1px 0 0 currentColor, - 1px 0 0 currentColor, - 0 1px 0 currentColor; + text-decoration-thickness: calc(3 * var(--relative-eighth-rem)); transition: color 300ms, text-decoration-color 300ms, text-decoration-thickness 300ms, - text-underline-offset 300ms, - border-color 300ms, - text-shadow 300ms; + border-color 300ms; } .link:focus, .link:focus-visible { -- cgit v1.2.3