garden

mbarillier 2020-03-01T15:17:58.004100Z

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?

mbarillier 2020-03-01T15:28:07.004800Z

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