Improve palette button highlight

Invert border so all colors have visible
selection, not just those that contrast
with white.
This commit is contained in:
Fred Sauer committed 2026-04-12 21:25:23 -07:00
1 parent b8eb873c03
commit 06ebd1554f
1 file changed
+16 -7
+16 -7
View File
@@ -276,14 +276,23 @@ canvas.pixelated {
-ms-interpolation-mode: nearest-neighbor; /* IE */
}
.palbtn {
width:2em;
height:2em;
border-style:none;
width: 2em;
height: 2em;
border-style: none;
position: relative;
border: none;
}
.palbtn.selected {
border-width:2px;
border-color:white;
border-style:dotted;
.palbtn.selected::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 2px dotted #888;
border-radius: inherit;
mix-blend-mode: difference;
pointer-events: none;
}
#javatari-screen canvas {
box-sizing: content-box;