Maintainer | Ertugrul Soeylemez <es@ertes.de> |
---|---|
Safe Haskell | None |
- data CSS = CSS {}
- cssImports :: Lens' CSS (Map Text (Set MediaType))
- cssProps :: Lens' CSS (Map (Set MediaType) [Property])
- data Property = Property {}
- propName :: Lens' Property PropName
- propSelector :: Lens' Property [Selector]
- propValue :: Lens' Property PropValue
- propImportant :: Lens' Property Bool
- data BuildCfg = BuildCfg {
- _bcMedia :: Set MediaType
- _bcSelector :: [Selector]
- bcMedia :: Lens' BuildCfg (Set MediaType)
- bcSelector :: Lens' BuildCfg [Selector]
- type SetProp = forall m. SetPropM m
- type SetPropM m = (MonadReader BuildCfg m, MonadWriter CSS m) => m ()
- newtype MediaType = MediaType {}
- mediaTypeStr :: Iso' MediaType ByteString
- newtype PropName = PropName {}
- propNameStr :: Iso' PropName ByteString
- newtype PropValue = PropValue {}
- propValueStr :: Iso' PropValue ByteString
- newtype Selector = Selector {}
- selectorStr :: Iso' Selector ByteString
- class ToPropValue a where
- toPropBuilder :: a -> Builder
- toPropValue :: a -> PropValue
Style sheets
Cascading style sheets.
Style properties.
Property | |
|
CSS building
CSS builder configuration.
type SetPropM m = (MonadReader BuildCfg m, MonadWriter CSS m) => m ()Source
Parametric property setter.
Auxiliary types
Media types, e.g. all
or print
.
Property names, e.g. font-family
.
Property values, e.g. sans-serif
.
Selectors, e.g. *
or #content p
.
Type classes
class ToPropValue a whereSource
Types that feature a conversion function to PropValue
.
toPropBuilder :: a -> BuilderSource
toPropValue :: a -> PropValueSource