Safe Haskell | None |
---|---|
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 # | |
A grid axis.
Parsed CSS grid item properties.
Instances
PropertyParser CSSCell Source # | |
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.
parseASCIIGrid :: [[Text]] -> Int -> Areas -> Maybe Areas Source #
Converts a grid to lookup table start & indices for row & columns. Exported for the sake of testing