I have a request. I would like to have more uss selectors as the current ones are very limited. Specifically, I am looking for the pseudo-classes :first-child
and :last-child
so that I can make the first and last tabs look different. However, the list of pseudo-classes is very limited and it seems impossible to extend it.
Alternatively, I would like to suggest adding a system to include custom selectors so that we can add things like odd/even (for tables), nth-child, select elements with a specific attribute, etc.
My current workaround involves having a script that updates the tree and adds additional classes based on some criteria. For instance, I have a script that adds .first-child
and .last-child
for certain elements. I attach this script to the UI document game object.