Created
April 9, 2018 01:31
-
-
Save mankyKitty/419440589b02cb0f03a5f927affd2bb5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elAttrStylez | |
:: MonadWidget t m | |
=> Text | |
-> m a | |
-> Map Text Text | |
-> m a | |
elAttrStylez e = | |
flip (RD.elAttr e) | |
clayDiv | |
:: MonadWidget t m | |
=> m () | |
clayDiv = | |
elAttrStylez "div" (RD.text "blank") $ "style" =: inlineCss ( | |
do | |
C.background C.black | |
C.color C.red | |
) | |
inlineCss :: Css -> Text | |
inlineCss = TL.toStrict . C.renderWith C.htmlInline mempty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment