clay-0.13.1: CSS preprocessor as embedded Haskell.

Safe HaskellNone
LanguageHaskell98

Clay.Common

Description

A bunch of type classes representing common values shared between multiple CSS properties, like Auto, Inherit, None, Normal and several more.

All the common value type classes have an instance for the Value type, making them easily derivable for custom value types.

Synopsis

Documentation

class All a where Source #

Minimal complete definition

all

Methods

all :: a Source #

class Inherit a where Source #

Minimal complete definition

inherit

Methods

inherit :: a Source #

Instances

Inherit Value Source # 

Methods

inherit :: Value Source #

Inherit Color Source # 

Methods

inherit :: Color Source #

Inherit ListStyleImage Source # 
Inherit ListStylePosition Source # 
Inherit ListStyleType Source # 
Inherit FontWeight Source # 
Inherit FontVariant Source # 
Inherit FontStyle Source # 
Inherit FontSize Source # 
Inherit JustifyContentValue Source # 
Inherit AlignSelfValue Source # 
Inherit AlignItemsValue Source # 
Inherit AlignContentValue Source # 
Inherit Filter Source # 
Inherit UserFocus Source # 
Inherit UserSelect Source # 
Inherit UserModify Source # 
Inherit UserInput Source # 
Inherit PointerEvents Source # 
Inherit Clip Source # 

Methods

inherit :: Clip Source #

Inherit Visibility Source # 
Inherit Overflow Source # 
Inherit Display Source # 
Inherit Position Source # 
Inherit Clear Source # 

Methods

inherit :: Clear Source #

Inherit FloatStyle Source # 
Inherit Stroke Source # 
Inherit BoxType Source # 
Inherit Side Source # 

Methods

inherit :: Side Source #

Inherit BackgroundAttachment Source # 
Inherit BackgroundClip Source # 
Inherit BackgroundOrigin Source # 
Inherit BackgroundImage Source # 
Inherit BackgroundRepeat Source # 
Inherit BackgroundSize Source # 
Inherit BackgroundPosition Source # 
Inherit MaskComposite Source # 
Inherit Content Source # 
Inherit TextOverflow Source # 
Inherit OverflowWrap Source # 
Inherit WordBreak Source # 
Inherit TextTransform Source # 
Inherit TextDecoration Source # 
Inherit WhiteSpace Source # 
Inherit TextAlign Source # 
Inherit TextDirection Source # 
Inherit TextIndent Source # 
Inherit TextRendering Source # 
Inherit Time Source # 

Methods

inherit :: Time Source #

Inherit AnimationName Source # 
Inherit (Angle a) Source # 

Methods

inherit :: Angle a Source #

Inherit (Size a) Source # 

Methods

inherit :: Size a Source #

class None a where Source #

Minimal complete definition

none

Methods

none :: a Source #

Instances

None Value Source # 

Methods

none :: Value Source #

None Color Source # 

Methods

none :: Color Source #

None ListStyleImage Source # 
None ListStylePosition Source # 
None ListStyleType Source # 
None Filter Source # 

Methods

none :: Filter Source #

None UserFocus Source # 
None UserSelect Source # 
None UserInput Source # 
None PointerEvents Source # 
None Display Source # 

Methods

none :: Display Source #

None Clear Source # 

Methods

none :: Clear Source #

None FloatStyle Source # 
None Stroke Source # 

Methods

none :: Stroke Source #

None BackgroundImage Source # 
None BackgroundRepeat Source # 
None MaskComposite Source # 
None Content Source # 

Methods

none :: Content Source #

None TextOverflow Source # 
None TextTransform Source # 
None TextDecoration Source # 
None Time Source # 

Methods

none :: Time Source #

None Transformation Source # 
None FillMode Source # 

Methods

none :: FillMode Source #

None (Size a) Source # 

Methods

none :: Size a Source #

class Hidden a where Source #

Minimal complete definition

hidden

Methods

hidden :: a Source #

class Other a where Source #

The other type class is used to escape from the type safety introduced by embedding CSS properties into the typed world of Clay. Other allows you to cast any Value to a specific value type.

Minimal complete definition

other

Methods

other :: Value -> a Source #

Instances

Other Value Source # 

Methods

other :: Value -> Value Source #

Other Color Source # 

Methods

other :: Value -> Color Source #

Other MediaType Source # 
Other Resolution Source # 
Other ListStyleImage Source # 
Other ListStylePosition Source # 
Other ListStyleType Source # 
Other NamedFont Source # 
Other FontWeight Source # 
Other FontVariant Source # 
Other FontStyle Source # 
Other FontSize Source # 

Methods

other :: Value -> FontSize Source #

Other JustifyContentValue Source # 
Other FlexWrap Source # 

Methods

other :: Value -> FlexWrap Source #

Other FlexDirection Source # 
Other AlignSelfValue Source # 
Other AlignItemsValue Source # 
Other AlignContentValue Source # 
Other PointerEvents Source # 
Other Clip Source # 

Methods

other :: Value -> Clip Source #

Other Visibility Source # 
Other Overflow Source # 

Methods

other :: Value -> Overflow Source #

Other Display Source # 

Methods

other :: Value -> Display Source #

Other Position Source # 

Methods

other :: Value -> Position Source #

Other Clear Source # 

Methods

other :: Value -> Clear Source #

Other Stroke Source # 

Methods

other :: Value -> Stroke Source #

Other Location Source # 

Methods

other :: Value -> Location Source #

Other Direction Source # 
Other Side Source # 

Methods

other :: Value -> Side Source #

Other BackgroundAttachment Source # 
Other BackgroundClip Source # 
Other BackgroundOrigin Source # 
Other BackgroundImage Source # 
Other BackgroundRepeat Source # 
Other BackgroundSize Source # 
Other BackgroundPosition Source # 
Other MaskComposite Source # 
Other Extend Source # 

Methods

other :: Value -> Extend Source #

Other Radial Source # 

Methods

other :: Value -> Radial Source #

Other TextDecoration Source # 
Other WhiteSpace Source # 
Other TextAlign Source # 
Other TextDirection Source # 
Other TextIndent Source # 
Other TextRendering Source # 
Other Time Source # 

Methods

other :: Value -> Time Source #

Other TimingFunction Source # 
Other FillMode Source # 

Methods

other :: Value -> FillMode Source #

Other PlayState Source # 
Other AnimationName Source # 
Other IterationCount Source # 
Other AnimationDirection Source # 
Other (Angle a) Source # 

Methods

other :: Value -> Angle a Source #

Other (Size a) Source # 

Methods

other :: Value -> Size a Source #

browsers :: Prefixed Source #

Common list browser prefixes to make experimental properties work in different browsers.

call :: (IsString s, Monoid s) => s -> s -> s Source #

Syntax for CSS function call.

fracMod :: RealFrac a => a -> a -> a Source #

Some auxiliary mathematical functions.

decimalRound :: RealFrac a => a -> Int -> a Source #