Copyright | (c) 2017 Cristian Adrián Ontivero |
---|---|
License | BSD3 |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- stylesheet :: Parser [Rule]
- atRule :: Parser Rule
- atMedia :: Parser Rule
- styleRule :: Parser Rule
- rule :: Parser Rule
- rules :: Parser [Rule]
- declaration :: Parser Declaration
- declarations :: Parser [Declaration]
- selector :: Parser Selector
- supportsCondition :: Parser SupportsCondition
Documentation
stylesheet :: Parser [Rule] Source #
Parse a stylesheet, starting by the @charset, @import and @namespace rules, followed by the list of rules, and ignoring any unneeded whitespace and comments.
Parser for a CSS rule, which can be either an at-rule (e.g. @charset), or a style rule.
rules :: Parser [Rule] Source #
Parser for CSS rules (both style rules, and at-rules), which can be separated by whitespace or comments.
declaration :: Parser Declaration Source #
Parser for a declaration, starting by the property name.
declarations :: Parser [Declaration] Source #
Parser for a list of declarations, ignoring spaces, comments, and empty declarations (e.g. ; ;)
selector :: Parser Selector Source #
Parser for CSS complex selectors (see Selector
for more details).
supportsCondition :: Parser SupportsCondition Source #
Parser for a supports_condition,
needed by @supports
rules.