Safe Haskell | Safe-Inferred |
---|---|
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
- innerProperties :: [(Text, [Token])]
- innerParent :: a
- gridStyles :: CSSGrid
- cellStyles :: CSSCell
- inlineStyles :: CSSInline
- pageOptions :: PageOptions
- paragraphOptions :: ParagraphOptions
- tableOptions :: TableOptions
- flexOptions :: CSSFlex
- 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) # getVars :: CSSBox a -> Props # 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 #
Desugars parsed CSS with a provided system font into more generic layout parameters.