What do you mean by "taken seriously"? (I'm curious).

rtfeldman/elm-css is phenomenal at, at the minimum, giving you type safe
styling in Elm. (including pseudo selectors, etc.)

On Mon, Sep 26, 2016 at 10:51 AM suttlecommakevin <
[email protected]> wrote:

> I wish CSS was taken more seriously by Elm.
> https://groups.google.com/forum/#!topic/elm-discuss/vvJGw1u7NVQ
>
>
> On Sunday, September 25, 2016 at 6:50:07 PM UTC-4, Peter Damoc wrote:
>>
>> Regarding 1. I don't see how the compiler can deduce that a certain union
>> type you used was suppose to have the meaning of ID and another meaning of
>> class
>>
>> One way you can do this manually is to specialize the namespace manually
>> and then unpack it.
>>
>> namespace : Namespace String Classes Ids msg
>> namespace =
>>     Html.CssHelpers.withNamespace "myApp"
>>
>> { id, class, classList } =
>>     namespace
>>
>> Regarding 2. You can generate the CSS on the fly and mount it into a
>> style element in the head using ports. This will make sure that you will
>> always have the latest version.
>> You can take a look here:
>> https://github.com/pdamoc/elm-powercss-proposal
>> to see how that could be done.
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> There is NO FATE, we are the creators.
>> blog: http://damoc.ro/
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to