hasmin-1.0.2: CSS Minifier

Copyright(c) 2017 Cristian Adrián Ontivero
LicenseBSD3
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Hasmin.Parser.Value

Description

Parsers for CSS values.

Synopsis

Documentation

valuesFor :: Text -> Parser Values #

Given a propery name, it returns a specific parser of values for that property. Fails if no specific parser is found.

valuesFallback :: Parser Values #

For cases when CSS hacks are used, e.g.: margin-top: 1px \9;.

url :: Parser Url #

Parser for <url>. Assumes "url(" has already been parsed.

shadowList :: Parser Values #

Parser for <shadow> values, used in the box-shadow property.

repeatStyle :: Parser RepeatStyle #

Parser for <repeat-style>, used in background-repeat and background.

color :: Parser Color #

Parser for <color>.

number :: Parser Number #

Parser for <number>.

fontStyle :: Parser Value #

Parser for <font-style>, used in the font-style and font properties.