Copyright | (c) 2017 Cristian Adrián Ontivero |
---|---|
License | BSD3 |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
Parsers for CSS values.
Synopsis
- valuesFor :: Text -> Parser Values
- valuesFallback :: Parser Values
- value :: Parser Value
- valuesInParens :: Parser Values
- stringOrUrl :: Parser (Either StringType Url)
- percentage :: Parser Percentage
- url :: Parser Url
- stringtype :: Parser StringType
- stringvalue :: Parser Value
- shadowList :: Parser Values
- timingFunction :: Parser TimingFunction
- repeatStyle :: Parser RepeatStyle
- position :: Parser Position
- color :: Parser Color
- number :: Parser Number
- fontStyle :: Parser Value
- textualvalue :: Parser Value
- borderRadius :: Parser BorderRadius
Documentation
valuesFor :: Text -> Parser Values Source #
Given a propery name, it returns a specific parser of values for that property. Fails if no specific parser is found.
valuesFallback :: Parser Values Source #
For cases when CSS hacks are used, e.g.: margin-top: 1px \9;
.
stringOrUrl :: Parser (Either StringType Url) Source #
percentage :: Parser Percentage Source #
Parser for <percentage>.
timingFunction :: Parser TimingFunction Source #
Parser for <single-timing-function>.
repeatStyle :: Parser RepeatStyle Source #
Parser for <repeat-style>,
used in background-repeat
and background
.