Fork me on GitHub
#garden
<
2017-09-20
>
karlstefan12:09:24

I'm having problems with the pseudo-selectors like nth-of-type, anyone have a working syntax to get it do display div:nth-of-type(1)? I only get div nth-of-type(1) (notice the space and lack of colon).

karlstefan12:09:40

Currently I'm just doing (keyword "div:nth-of-type(1)") to get it to work, but that seems like the wrong approach.

niamu15:09:46

[(s/div (s/nth-of-type "1"))
 {:background :red}]

niamu15:09:01

Where s is [garden.selectors :as s]