cassius and tag folding.

I'm getting started with Yesod and some html5 stuff. The actual CSS should look something like .flexbox { display: -webkit-box; -webkit-box-orient: horizontal; display: -moz-box; -moz-box-orient: horizontal; display: box; box-orient: horizontal; } but when i do this in cassius .flexbox display: box display: -moz-box display: -webkit-box box-orient: horizontal -moz-box-orient: horizontal -webkit-box-orient: horizontal the display: get's flattened down to the last value listed. Is there a good way to do this? Thanks for any advice. Jason

Cassius doesn't currently support nested CSS, so your best bet is to just write plain CSS for those parts and put it into the static folder.
Sent from my iPod
On Mar 12, 2011, at 9:08 PM, jason foutz
I'm getting started with Yesod and some html5 stuff.
The actual CSS should look something like
.flexbox { display: -webkit-box; -webkit-box-orient: horizontal;
display: -moz-box; -moz-box-orient: horizontal;
display: box; box-orient: horizontal; }
but when i do this in cassius .flexbox display: box display: -moz-box display: -webkit-box
box-orient: horizontal -moz-box-orient: horizontal -webkit-box-orient: horizontal
the display: get's flattened down to the last value listed.
Is there a good way to do this?
Thanks for any advice.
Jason
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel

On Sun, Mar 13, 2011 at 5:08 AM, jason foutz
I'm getting started with Yesod and some html5 stuff.
The actual CSS should look something like
.flexbox { display: -webkit-box; -webkit-box-orient: horizontal;
display: -moz-box; -moz-box-orient: horizontal;
display: box; box-orient: horizontal; }
but when i do this in cassius .flexbox display: box display: -moz-box display: -webkit-box
box-orient: horizontal -moz-box-orient: horizontal -webkit-box-orient: horizontal
the display: get's flattened down to the last value listed.
Is there a good way to do this?
Thanks for any advice.
Jason
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
I had not taken into account that there *are* times when you want to use the same attribute name multiple times. The current release of Hamlet represents the attributes pairs with a Map. I just pushed a commit to the Github repo that switches this to a tuple list, thereby allowing your usage. Would you mind testing this? For the record: this also means that attributes will no longer come out sorted alphabetically, but rather in the order they appear. In retrospect, this is probably what people want anyway, so I'm guessing this is an all around change for the better. If anyone has objections, please let me know soon. Michael
participants (3)
-
Ian Duncan
-
jason foutz
-
Michael Snoyman