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 Source # priority :: CSSGrid -> [Text] Source # shorthand :: CSSGrid -> Text -> [Token] -> [(Text, [Token])] Source # longhand :: CSSGrid -> CSSGrid -> Text -> [Token] -> Maybe CSSGrid Source # getVars :: CSSGrid -> Props Source # setVars :: Props -> CSSGrid -> CSSGrid Source # pseudoEl :: CSSGrid -> Text -> (CSSGrid -> Maybe CSSGrid -> CSSGrid) -> CSSGrid Source # |
A grid axis.
Parsed CSS grid item properties.
Instances
PropertyParser CSSCell Source # | |
Defined in Graphics.Layout.Grid.CSS inherit :: CSSCell -> CSSCell Source # priority :: CSSCell -> [Text] Source # shorthand :: CSSCell -> Text -> [Token] -> [(Text, [Token])] Source # longhand :: CSSCell -> CSSCell -> Text -> [Token] -> Maybe CSSCell Source # getVars :: CSSCell -> Props Source # setVars :: Props -> CSSCell -> CSSCell Source # pseudoEl :: CSSCell -> Text -> (CSSCell -> Maybe CSSCell -> CSSCell) -> 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.