[web-devel] How to create Cassius Mixin?
Michael Snoyman
michael at snoyman.com
Wed Jan 14 06:44:36 UTC 2015
One answer is that Cassius is just a thin wrapper on top of Lucius. You can
use a Lucius mixin with Cassius just fine. It's essentially an API
oversight that there's no equivalent cassiusMixin function. I'll probably
add one in the next few days, thanks for pointing it out.
On Wed Jan 14 2015 at 2:14:26 AM Antoni Boucher <bouanto at vivaldi.net> wrote:
> Hello.
>
> How can I create a CSS mixin with Cassius (from Yesod Haskell Web
> Framework) ?
>
> For instance, this code:
>
> transition val = [cassiusMixin|
> -webkit-transition: #{val}
> -moz-transition: #{val}
> -ms-transition: #{val}
> -o-transition: #{val}
> transition: #{val}
> |]
>
> does not work because cassiusMixin does not exist.
>
> Is there a way to create a mixin with cassius?
>
> If not, is cassius a limited version of lucius?
>
> Thanks.
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20150114/323352d2/attachment.html>
More information about the web-devel
mailing list