Copyright | (c) 2017 Cristian Adrián Ontivero |
---|---|
License | BSD3 |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
- data Value
- = Inherit
- | Initial
- | Unset
- | NumberV Number
- | PercentageV Percentage
- | DistanceV Distance
- | AngleV Angle
- | DurationV Duration
- | FrequencyV Frequency
- | ResolutionV Resolution
- | ColorV Color
- | GradientV Text Gradient
- | GenericFunc Text Values
- | TransformV TransformFunction
- | TimingFuncV TimingFunction
- | FilterV FilterFunction
- | ShadowV Shadow
- | ShadowText Distance Distance (Maybe Distance) (Maybe Color)
- | PositionV Position
- | RepeatStyleV RepeatStyle
- | BgSizeV BgSize
- | BgLayer (Maybe Value) (Maybe Position) (Maybe BgSize) (Maybe RepeatStyle) (Maybe TextV) (Maybe TextV) (Maybe TextV)
- | FinalBgLayer (Maybe Value) (Maybe Position) (Maybe BgSize) (Maybe RepeatStyle) (Maybe TextV) (Maybe TextV) (Maybe TextV) (Maybe Color)
- | SingleTransition (Maybe TextV) (Maybe Duration) (Maybe TimingFunction) (Maybe Duration)
- | SingleAnimation (Maybe Duration) (Maybe TimingFunction) (Maybe Duration) (Maybe Value) (Maybe TextV) (Maybe TextV) (Maybe TextV) (Maybe Value)
- | FontV (Maybe TextV) (Maybe TextV) (Maybe Value) (Maybe TextV) Value (Maybe Value) [Value]
- | StringV StringType
- | UrlV Url
- | Format [StringType]
- | Local (Either Text StringType)
- | Rect Distance Distance Distance Distance
- | Other TextV
- data Values = Values Value [(Separator, Value)]
- newtype TextV = TextV {}
- data Separator
- newtype Url = Url (Either Text StringType)
- mkOther :: Text -> Value
- mkValues :: [Value] -> Values
- valuesToList :: Values -> [Value]
- optimizeFontFamily :: Value -> Reader Config Value
- lowercaseText :: Text -> Reader Config Text
Documentation
Redefines equality to be case-insensitive, since CSS literal values such as "auto", "none", etc. are so.
valuesToList :: Values -> [Value] Source #