web-rep-0.1.3: representations of a web pag

Safe HaskellNone
LanguageHaskell2010

Web.Page.Css

Contents

Synopsis

Documentation

crispEdges :: ShapeRendering Source #

optimizeSpeed :: ShapeRendering Source #

geometricPrecision :: ShapeRendering Source #

shapeRendering :: ShapeRendering -> Css Source #

type Css = StyleM () #

The Css context is used to collect style rules which are mappings from selectors to style properties. The Css type is a computation in the StyleM monad that just collects and doesn't return anything.

render :: Css -> Text #

Render a stylesheet with the default configuration. The pretty printer is used by default.

renderWith :: Config -> [App] -> Css -> Text #

Render a stylesheet with a custom configuration and an optional outer scope.

compact :: Config #

Configuration to print to a compacted unreadable CSS output.

data PageCss Source #

Constructors

PageCss Css 
PageCssText Text 
Instances
Eq PageCss Source # 
Instance details

Defined in Web.Page.Css

Methods

(==) :: PageCss -> PageCss -> Bool #

(/=) :: PageCss -> PageCss -> Bool #

Show PageCss Source # 
Instance details

Defined in Web.Page.Css

Generic PageCss Source # 
Instance details

Defined in Web.Page.Css

Associated Types

type Rep PageCss :: Type -> Type #

Methods

from :: PageCss -> Rep PageCss x #

to :: Rep PageCss x -> PageCss #

Semigroup PageCss Source # 
Instance details

Defined in Web.Page.Css

Monoid PageCss Source # 
Instance details

Defined in Web.Page.Css

type Rep PageCss Source # 
Instance details

Defined in Web.Page.Css

Orphan instances

Eq Css Source # 
Instance details

Methods

(==) :: Css -> Css -> Bool #

(/=) :: Css -> Css -> Bool #

Show Css Source # 
Instance details

Methods

showsPrec :: Int -> Css -> ShowS #

show :: Css -> String #

showList :: [Css] -> ShowS #