From: Ardis Lu Date: Fri, 14 Jul 2023 06:40:51 +0000 (-0700) Subject: Use pointer-events instead of visibility X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=bfa2d44f4b0a7e68dc2aa3b6203696faa06bb98c;p=simulate-etherscan-function-display Use pointer-events instead of visibility More semantically appropriate for unblocking area and allows transition --- diff --git a/index.html b/index.html index 8a0ee29..22d3157 100644 --- a/index.html +++ b/index.html @@ -79,12 +79,10 @@ span.pill { position: relative; --tooltip-opacity: 0; - --tooltip-visibility: hidden; } span.pill:has(.pill-text:hover) { --tooltip-opacity: 1; - --tooltip-visibility: visible; } span.pill-text { @@ -117,7 +115,7 @@ border-radius: 8px; background: rgb(8 29 53); color: rgb(255 255 255); - visibility: var(--tooltip-visibility); + pointer-events: none; opacity: var(--tooltip-opacity); transition: opacity 150ms linear; }