sebastiaanvisser / clay

A CSS preprocessor as embedded Haskell.
Other
357 stars 72 forks source link

Invalid output with htmlCompact #254

Closed ddssff closed 8 months ago

ddssff commented 1 year ago

So this works in compact mode:

> renderWith Clay.Render.compact [] (flexWrap Flex.nowrap >> flexWrap Flex.nowrap >> star # Clay.not label <? flexGrow 1)
 "{flex-wrap:nowrap;flex-wrap:nowrap}:not(label){flex-grow:1}"

I'm wondering if there is a way to make this into valid inline css:

> renderWith Clay.Render.htmlInline [] (flexWrap Flex.nowrap >> flexWrap Flex.nowrap >> star # Clay.not label <? flexGrow 1)
"flex-wrap:nowrap;flex-wrap:nowrapflex-grow:1"
ddssff commented 8 months ago

No, selectors do not work in inline css. Closing.