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
- | LengthV Length
- | AngleV Angle
- | TimeV Time
- | FrequencyV Frequency
- | ResolutionV Resolution
- | ColorV Color
- | GradientV Text Gradient
- | GenericFunc Text Values
- | TransformV TransformFunction
- | TimingFuncV TimingFunction
- | FilterV FilterFunction
- | ShadowV Shadow
- | ShadowText Length Length (Maybe Length) (Maybe Color)
- | PositionV Position
- | RepeatStyleV RepeatStyle
- | BorderRadiusV BorderRadius
- | BasicShapeV BasicShape
- | BgSizeV BgSize
- | BgLayer { }
- | FinalBgLayer (Maybe Value) (Maybe Position) (Maybe BgSize) (Maybe RepeatStyle) (Maybe TextV) (Maybe TextV) (Maybe TextV) (Maybe Color)
- | SingleTransition { }
- | SingleAnimation (Maybe Time) (Maybe TimingFunction) (Maybe Time) (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 Length Length Length Length
- | 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
A CSS value.
Inherit | |
Initial | |
Unset | |
NumberV Number | |
PercentageV Percentage | |
LengthV Length | |
AngleV Angle | |
TimeV Time | |
FrequencyV Frequency | |
ResolutionV Resolution | |
ColorV Color | |
GradientV Text Gradient | |
GenericFunc Text Values | |
TransformV TransformFunction | |
TimingFuncV TimingFunction | |
FilterV FilterFunction | |
ShadowV Shadow | |
ShadowText Length Length (Maybe Length) (Maybe Color) | |
PositionV Position | |
RepeatStyleV RepeatStyle | |
BorderRadiusV BorderRadius | |
BasicShapeV BasicShape | |
BgSizeV BgSize | |
BgLayer | |
FinalBgLayer (Maybe Value) (Maybe Position) (Maybe BgSize) (Maybe RepeatStyle) (Maybe TextV) (Maybe TextV) (Maybe TextV) (Maybe Color) | |
SingleTransition | |
SingleAnimation (Maybe Time) (Maybe TimingFunction) (Maybe Time) (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 Length Length Length Length | |
Other TextV | Unrecognized text |
Redefines equality to be case-insensitive, since CSS literal values such as "auto", "none", etc. are so.
A value separator.
valuesToList :: Values -> [Value] Source #