Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Infrastructure for parsing & desugaring grid-layout related CSS properties.
Synopsis
- data CSSGrid = CSSGrid {
- autoColumns :: Unitted
- autoFlow :: Axis
- autoFlowDense :: Bool
- autoRows :: Unitted
- templateAreas :: Areas
- templateColumns :: [([Text], Unitted)]
- templateRows :: [([Text], Unitted)]
- cssGap :: Size Unitted Unitted
- alignItems :: Size Alignment Alignment
- data Axis
- data CSSCell = CSSCell {}
- data Placement
- finalizeGrid :: PropertyParser x => CSSGrid -> Font' -> [CSSCell] -> [LayoutItem Length Length x] -> LayoutItem Length Length x
- type Areas = HashMap Text ((Int, Int), (Int, Maybe Int))
- parseASCIIGrid :: [[Text]] -> Int -> Areas -> Maybe Areas
Documentation
Parsed CSS Grid properties
CSSGrid | |
|
Instances
PropertyParser CSSGrid Source # | |
Defined in Graphics.Layout.Grid.CSS inherit :: CSSGrid -> CSSGrid # priority :: CSSGrid -> [Text] # shorthand :: CSSGrid -> Text -> [Token] -> [(Text, [Token])] # longhand :: CSSGrid -> CSSGrid -> Text -> [Token] -> Maybe CSSGrid # setVars :: Props -> CSSGrid -> CSSGrid # pseudoEl :: CSSGrid -> Text -> (CSSGrid -> Maybe CSSGrid -> CSSGrid) -> CSSGrid # |
A grid axis.
Parsed CSS grid item properties.
Instances
PropertyParser CSSCell Source # | |
Defined in Graphics.Layout.Grid.CSS inherit :: CSSCell -> CSSCell # priority :: CSSCell -> [Text] # shorthand :: CSSCell -> Text -> [Token] -> [(Text, [Token])] # longhand :: CSSCell -> CSSCell -> Text -> [Token] -> Maybe CSSCell # setVars :: Props -> CSSCell -> CSSCell # pseudoEl :: CSSCell -> Text -> (CSSCell -> Maybe CSSCell -> CSSCell) -> CSSCell # |
Identifies a cell in the CSS grid.
finalizeGrid :: PropertyParser x => CSSGrid -> Font' -> [CSSCell] -> [LayoutItem Length Length x] -> LayoutItem Length Length x Source #
Desugar grid properties to a grid layout.