@fogti@chaos.social The codebase it's used in will be open-source/published at some point, but it's a bit difficult to extract right now (because it integrates heavily with the styling in the rest of the project).
The description above should be all that's needed to replicate it, though, aside from the styling and exact positioning (you'll need a top and left margin of -1px in some cases).
I might get around to creating a simplified example at some point, but probably not tonight anymore.