Fork me on GitHub
#garden
<
2020-03-01
>
mbarillier15:03:58

I'm trying to generate a css selector using garden. the desired output is:

[class*="foo"] {
  padding: 1rem;
}
but I can't figure out what I need to put in a .clj file to spit that out in a .css file. closest I've got is: (s/attr-matches :class "foo") ... what's the proper way to generate selectors?

mbarillier15:03:07

n/m, figured it out: [(s/css-selector (s/attr-matches :class "foo")) {:padding "1rem"}]