Copyright | (c) 2017 Cristian Adrián Ontivero |
---|---|
License | BSD3 |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
Parsers for CSS values.
- 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
- textualvalue :: Parser Value
- stringvalue :: Parser Value
- shadowList :: Parser Values
- timingFunction :: Parser TimingFunction
- repeatStyle :: Parser RepeatStyle
- position :: Parser Position
- color :: Parser Color
- number :: Parser Number
- fontStyle :: Parser Value
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;
.
percentage :: Parser Percentage Source #
Parser for <percentage>.
stringtype :: Parser StringType Source #
timingFunction :: Parser TimingFunction Source #
Parser for <single-timing-function>.
repeatStyle :: Parser RepeatStyle Source #
Parser for <repeat-style>,
used in background-repeat
and background
.