Sprinkle a little if(), a style query, and some sibling-index() and we get a con...
CSS-Tricks @csstricks@mastodon.social
Sprinkle a little if(), a style query, and some sibling-index() and we get a conditional way to use :nth-child(), as @css shows us.
https://css-tricks.com/re-implementing-nth-child-with-modern-css/