From bfa2d44f4b0a7e68dc2aa3b6203696faa06bb98c Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Thu, 13 Jul 2023 23:40:51 -0700 Subject: [PATCH] Use pointer-events instead of visibility More semantically appropriate for unblocking area and allows transition --- index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.47.3