Safe Haskell | None |
---|---|
Language | Haskell2010 |
Parses & desugars CSS properties to general CatTrap datastructures.
Synopsis
- data CSSBox a = CSSBox {
- display :: Display
- boxSizing :: BoxSizing
- cssBox :: PaddedBox Unitted Unitted
- font :: Pattern
- font' :: CSSFont
- inner :: a
- gridStyles :: CSSGrid
- cellStyles :: CSSCell
- inlineStyles :: CSSInline
- captionBelow :: Bool
- pageOptions :: PageOptions
- data BoxSizing
- data Display
- finalizeCSS :: PropertyParser x => Font' -> Font' -> StyleTree (CSSBox x) -> LayoutItem Length Length x
- finalizeCSS' :: PropertyParser x => Font' -> StyleTree (CSSBox x) -> LayoutItem Length Length x
Documentation
Parsed CSS properties relevant to layout.
CSSBox | |
|
Instances
PropertyParser a => PropertyParser (CSSBox a) Source # | |
Defined in Graphics.Layout.CSS.Parse inherit :: CSSBox a -> CSSBox a priority :: CSSBox a -> [Text] shorthand :: CSSBox a -> Text -> [Token] -> [(Text, [Token])] longhand :: CSSBox a -> CSSBox a -> Text -> [Token] -> Maybe (CSSBox a) setVars :: Props -> CSSBox a -> CSSBox a pseudoEl :: CSSBox a -> Text -> (CSSBox a -> Maybe (CSSBox a) -> CSSBox a) -> CSSBox a |
Possibly values for CSS display property.
finalizeCSS :: PropertyParser x => Font' -> Font' -> StyleTree (CSSBox x) -> LayoutItem Length Length x Source #
Desugar parsed CSS into more generic layout parameters.
finalizeCSS' :: PropertyParser x => Font' -> StyleTree (CSSBox x) -> LayoutItem Length Length x Source #