From: Ardis Lu Date: Sat, 7 Oct 2023 22:31:35 +0000 (-0700) Subject: Add drop-shadow on copy button hover X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=0e9c497cb9136e76d690b2dc3b4a0a0ca237dfe6;p=css-for-line-clamp-ellipsis Add drop-shadow on copy button hover --- diff --git a/index.html b/index.html index 89bc671..0537ff6 100644 --- a/index.html +++ b/index.html @@ -111,6 +111,11 @@ opacity: 0.9; } + :is(button:hover, button:focus-within) svg { + filter: drop-shadow(0 0 16px hsl(216deg 50% 65%)); + transition: filter 200ms; + } + pre, code { border-radius: 4px;