sebastiaanvisser / clay

A CSS preprocessor as embedded Haskell.
Other
360 stars 73 forks source link

Invalid output with htmlCompact #254

Closed ddssff closed 10 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 10 months ago

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