clay-0.11: 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 UserFocus Source # 
Inherit UserSelect Source # 
Inherit UserModify Source # 
Inherit UserInput Source # 
Inherit ListStyleImage Source # 
Inherit ListStylePosition Source # 
Inherit ListStyleType Source # 
Inherit Time Source # 

Methods

inherit :: Time Source #

Inherit AnimationName Source # 
Inherit Color Source # 

Methods

inherit :: Color 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 JustifyContentValue Source # 
Inherit AlignSelfValue Source # 
Inherit AlignItemsValue Source # 
Inherit AlignContentValue Source # 
Inherit FontWeight Source # 
Inherit FontVariant Source # 
Inherit FontStyle Source # 
Inherit FontSize Source # 
Inherit Content Source # 
Inherit TextTransform Source # 
Inherit TextDecoration Source # 
Inherit WhiteSpace Source # 
Inherit TextAlign Source # 
Inherit TextDirection Source # 
Inherit TextIndent Source # 
Inherit TextRendering Source # 
Inherit Filter 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 #

class Hidden a where Source #

Minimal complete definition

hidden

Methods

hidden :: a Source #

class Unset a where Source #

Minimal complete definition

unset

Methods

unset :: 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 MediaType Source # 
Other ListStyleImage Source # 
Other ListStylePosition Source # 
Other ListStyleType 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 Color Source # 

Methods

other :: Value -> Color 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 JustifyContentValue Source # 
Other FlexWrap Source # 

Methods

other :: Value -> FlexWrap Source #

Other FlexDirection Source # 
Other AlignSelfValue Source # 
Other AlignItemsValue Source # 
Other AlignContentValue Source # 
Other NamedFont Source # 
Other FontWeight Source # 
Other FontVariant Source # 
Other FontStyle Source # 
Other FontSize Source # 

Methods

other :: Value -> FontSize 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 Resolution 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 #