| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Graphics.Layout.Inline.CSS
Description
Infrastructure for parsing & desugaring text related CSS properties.
Synopsis
- data CSSInline = CSSInline Text TextOptions UnicodeBidi
- class Default a where
- def :: a
- data UnicodeBidi
- applyFontInline :: TextOptions -> Font' -> TextOptions
- applyBidi :: Default d => CSSInline -> [InnerNode Text d] -> [InnerNode Text d]
- resolveVAlign :: Font' -> Unitted -> VerticalAlignment
- resolveBoxOpts :: Font' -> TableOptions -> BoxOptions
- plaintext :: Text -> CSSInline
Documentation
Document text with Balkón styling options, CSS stylable.
Constructors
| CSSInline Text TextOptions UnicodeBidi |
Instances
| PropertyParser CSSInline Source # | |
Defined in Graphics.Layout.Inline.CSS Methods inherit :: CSSInline -> CSSInline # priority :: CSSInline -> [Text] # shorthand :: CSSInline -> Text -> [Token] -> [(Text, [Token])] # longhand :: CSSInline -> CSSInline -> Text -> [Token] -> Maybe CSSInline # getVars :: CSSInline -> Props # setVars :: Props -> CSSInline -> CSSInline # pseudoEl :: CSSInline -> Text -> (CSSInline -> Maybe CSSInline -> CSSInline) -> CSSInline # | |
class Default a where Source #
Types with default values. Used to fill in values into generated fragments from caller.
data UnicodeBidi Source #
To what degree is the text direction isolated?
Constructors
| BdNormal | |
| BdEmbed | |
| BdOverride | |
| BdIsolate | |
| BdIsolateOverride | |
| BdPlainText |
Instances
applyFontInline :: TextOptions -> Font' -> TextOptions Source #
Fills in properties from looked-up fonts.
applyBidi :: Default d => CSSInline -> [InnerNode Text d] -> [InnerNode Text d] Source #
Apply Bidi chars around the inline text. FIXME: Handle the tree!
resolveVAlign :: Font' -> Unitted -> VerticalAlignment Source #
Converts parsed valign keywords or length units to Balkón alignment.
resolveBoxOpts :: Font' -> TableOptions -> BoxOptions Source #
Converts grid options to box options.