Check out Makruk (Thai Chess), our featured variant for March, 2025.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

How to Design and Post Your Own Game. A reference for those who want to post their own games here.[All Comments] [Add Comment or Rating]
🕸📝Fergus Duniho wrote on Sat, Mar 29 02:21 PM EDT in reply to Fergus Duniho from Fri Mar 28 09:24 PM:

I could use outline-offset with a negative value to keep the outline within the confines of the space, but I need to know the dimensions of the piece to finetune it.

It's now doing something along these lines. It first does some testing to determine whether the piece images are padded. If they are padded, it applies a universal outline-offset value of "-3px" to each image in the diagram. If they are not padded, it applies a universal value of "1px" to each image, which keeps the outline from touching the image.

I might also see if I could use outline with a negative outline-offset on the table cell, but I'll look into that tomorrow.

That seems to work, but going with this solution would require more changes to the code.