Module

Pha.Html.Util

Package
purescript-pha
Repository
gbagan/purescript-pha

#px Source

px :: Number -> String

63.7 → "63.7px"

#px' Source

px' :: Int -> String

63 → 63.px

#pc Source

pc :: Number -> String

0.7 → "70%"

#translate Source

translate :: forall x y. IsLength x => IsLength y => x -> y -> String

translate (px 40.0) (px 30.0) → "translate(40px,30px)"

#rgbColor Source

rgbColor :: Int -> Int -> Int -> String

rgbColor 128 64 30 → "rgb(128,64,30)"

#styleWidth Source

styleWidth :: forall msg x. IsLength x => x -> Prop msg

#styleHeight Source

styleHeight :: forall msg x. IsLength x => x -> Prop msg