From: Ardis Lu Date: Mon, 27 May 2024 00:03:09 +0000 (-0700) Subject: Scope ::highlight to
X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=d3f0c189b6d64840ae32e7d67904d8b9370e2eb7;p=ard.is

Scope ::highlight to 

To reduce clutter in DevTools styles pane
---

diff --git a/index.html b/index.html
index 1af9df8..8375734 100644
--- a/index.html
+++ b/index.html
@@ -192,7 +192,7 @@
         highlightStyle.textContent = '';
         highlights.forEach((highlight, i) => {
           CSS.highlights.set(`c${i}`, new Highlight(...highlight));
-          highlightStyle.textContent += `::highlight(c${i}){color:hsl(${i * 36}deg 50% 50%)}`;
+          highlightStyle.textContent += `pre::highlight(c${i}){color:hsl(${i * 36}deg 50% 50%)}`;
         });
       }
     });