chiark / gitweb /
webstead: put border on tickboxes, not table cells
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 4 Oct 2025 16:27:21 +0000 (17:27 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 13 Jan 2026 21:42:18 +0000 (21:42 +0000)
That means the borders are clickable, which is what I want.

webstead.xhtml

index 98da8d55d6cec1f1a7af56483b389a6f860c1e2f..686ce6dc2e89bad72af460e7a5ba33b32c082150 100644 (file)
       #pixels td {
           padding: 0;
           line-height: 0;
-          border: 1px solid;
       }
       #pixels input {
           appearance: none;
           margin: 0;
-          width: calc(var(--pix) - 2px);
-          height: calc(var(--pix) - 2px);
+          width: var(--pix);
+          height: var(--pix);
+          border: 1px solid;
       }
       #pixels input:checked {
           background: currentColor;