chiark / gitweb /
webstead: mark :active pixels
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 12 Oct 2025 00:02:10 +0000 (01:02 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 13 Jan 2026 21:42:18 +0000 (21:42 +0000)
This makes it more obvious that something is happening when the mouse
button is pressed, even though the tickybox doesnt change state until
it's released.  Thus should make the UI feel less sluggish.

webstead.xhtml

index f0df386c099371a4d4781b0a1551153bd3e48ee0..03877f2f0d0683777f927c96c1ff068ad5160bc7 100644 (file)
@@ -34,6 +34,9 @@
           height: var(--pix);
           border: 1px solid;
       }
+      #pixels input:active {
+          border: 3px solid;
+      }
       #pixels input:checked {
           background: currentColor;
       }