DEPRECATED. Like compiling to .css files, support for asPairs is planned to be removed in a
future release (likely sometime in 2018), once Html.Styled has
matured sufficiently. The design goal is for elm-css to offer One Way To Do It,
and that one way is planned to be Html.Styled!
Take a list of styles and return a list of key-value pairs that
can then be passed to a style attribute.
styled = asPairs >> Html.Attributes.style
button
[ styled [ position absolute, left (px 5) ] ][ text "Whee!" ]
DEPRECATED. Like compiling to .css files, support for
asPairsis planned to be removed in a future release (likely sometime in 2018), onceHtml.Styledhas matured sufficiently. The design goal is for elm-css to offer One Way To Do It, and that one way is planned to beHtml.Styled!Take a list of styles and return a list of key-value pairs that can then be passed to a
styleattribute. styled = asPairs >> Html.Attributes.style button [ styled [ position absolute, left (px 5) ] ][ text "Whee!" ]