@@ -15,9 +15,9 @@ import Data.String (joinWith)
1515import Data.Tuple (Tuple (..))
1616import qualified Data.StrMap as SM
1717
18- import Css .Property (Key (), Value ())
19- import Css .Render (render , renderedSheet , collect )
20- import Css .Stylesheet (Css (), Rule (..), runS )
18+ import CSS .Property (Key (), Value ())
19+ import CSS .Render (render , renderedSheet , collect )
20+ import CSS .Stylesheet (CSS (), Rule (..), runS )
2121
2222import Halogen.HTML.Core (HTML (), Prop (), IsProp , prop , propName , attrName )
2323import qualified Halogen.HTML as H
@@ -39,11 +39,11 @@ instance stylesIsProp :: IsProp Styles where
3939-- | For example:
4040-- |
4141-- | ```purescript
42- -- | H.div [ Css .style do color red
42+ -- | H.div [ CSS .style do color red
4343-- | display block ]
4444-- | [ ... ]
4545-- | ```
46- style :: forall i . Css -> Prop i
46+ style :: forall i . CSS -> Prop i
4747style = prop (propName " style" ) (Just $ attrName " style" ) <<< Styles <<< rules <<< runS
4848 where
4949 rules :: Array Rule -> SM.StrMap String
@@ -60,7 +60,7 @@ style = prop (propName "style") (Just $ attrName "style") <<< Styles <<< rules <
6060 rights = mapMaybe (either (const Nothing ) Just )
6161
6262-- | Render a set of rules as a `style` element.
63- stylesheet :: forall p i . Css -> HTML p i
63+ stylesheet :: forall p i . CSS -> HTML p i
6464stylesheet css = H .style [ P .type_ " text/css" ] [ H .text content ]
6565 where
6666 content = fromMaybe " " $ renderedSheet $ render css
0 commit comments