clay-0.12.2: 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 #

Minimal complete definition

all

Methods

all :: a #

Instances

All Value # 

Methods

all :: Value #

All MediaType # 

Methods

all :: MediaType #

All UserSelect # 

Methods

all :: UserSelect #

class Auto a where #

Minimal complete definition

auto

Methods

auto :: a #

Instances

class Baseline a where #

Minimal complete definition

baseline

Methods

baseline :: a #

class Inherit a where #

Minimal complete definition

inherit

Methods

inherit :: a #

Instances

Inherit Value # 

Methods

inherit :: Value #

Inherit UserFocus # 

Methods

inherit :: UserFocus #

Inherit UserSelect # 

Methods

inherit :: UserSelect #

Inherit UserModify # 

Methods

inherit :: UserModify #

Inherit UserInput # 

Methods

inherit :: UserInput #

Inherit ListStyleImage # 
Inherit ListStylePosition # 
Inherit ListStyleType # 
Inherit PointerEvents # 
Inherit Clip # 

Methods

inherit :: Clip #

Inherit Visibility # 

Methods

inherit :: Visibility #

Inherit Overflow # 

Methods

inherit :: Overflow #

Inherit Display # 

Methods

inherit :: Display #

Inherit Position # 

Methods

inherit :: Position #

Inherit Clear # 

Methods

inherit :: Clear #

Inherit FloatStyle # 

Methods

inherit :: FloatStyle #

Inherit JustifyContentValue # 
Inherit AlignSelfValue # 
Inherit AlignItemsValue # 
Inherit AlignContentValue # 
Inherit Time # 

Methods

inherit :: Time #

Inherit Color # 

Methods

inherit :: Color #

Inherit Filter # 

Methods

inherit :: Filter #

Inherit FontWeight # 

Methods

inherit :: FontWeight #

Inherit FontVariant # 
Inherit FontStyle # 

Methods

inherit :: FontStyle #

Inherit FontSize # 

Methods

inherit :: FontSize #

Inherit Stroke # 

Methods

inherit :: Stroke #

Inherit BoxType # 

Methods

inherit :: BoxType #

Inherit Side # 

Methods

inherit :: Side #

Inherit BackgroundAttachment # 
Inherit BackgroundClip # 
Inherit BackgroundOrigin # 
Inherit BackgroundImage # 
Inherit BackgroundRepeat # 
Inherit BackgroundSize # 
Inherit BackgroundPosition # 
Inherit MaskComposite # 
Inherit Content # 

Methods

inherit :: Content #

Inherit TextOverflow # 
Inherit OverflowWrap # 
Inherit WordBreak # 

Methods

inherit :: WordBreak #

Inherit TextTransform # 
Inherit TextDecoration # 
Inherit WhiteSpace # 

Methods

inherit :: WhiteSpace #

Inherit TextAlign # 

Methods

inherit :: TextAlign #

Inherit TextDirection # 
Inherit TextIndent # 

Methods

inherit :: TextIndent #

Inherit TextRendering # 
Inherit AnimationName # 
Inherit (Angle a) # 

Methods

inherit :: Angle a #

Inherit (Size a) # 

Methods

inherit :: Size a #

class Visible a where #

Minimal complete definition

visible

Methods

visible :: a #

class Hidden a where #

Minimal complete definition

hidden

Methods

hidden :: a #

Instances

class Unset a where #

Minimal complete definition

unset

Methods

unset :: a #

class Other a where #

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 #

Instances

Other Value # 

Methods

other :: Value -> Value #

Other MediaType # 

Methods

other :: Value -> MediaType #

Other ListStyleImage # 
Other ListStylePosition # 
Other ListStyleType # 

Methods

other :: Value -> ListStyleType #

Other PointerEvents # 

Methods

other :: Value -> PointerEvents #

Other Clip # 

Methods

other :: Value -> Clip #

Other Visibility # 

Methods

other :: Value -> Visibility #

Other Overflow # 

Methods

other :: Value -> Overflow #

Other Display # 

Methods

other :: Value -> Display #

Other Position # 

Methods

other :: Value -> Position #

Other Clear # 

Methods

other :: Value -> Clear #

Other JustifyContentValue # 
Other FlexWrap # 

Methods

other :: Value -> FlexWrap #

Other FlexDirection # 

Methods

other :: Value -> FlexDirection #

Other AlignSelfValue # 
Other AlignItemsValue # 
Other AlignContentValue # 
Other Resolution # 

Methods

other :: Value -> Resolution #

Other Time # 

Methods

other :: Value -> Time #

Other TimingFunction # 
Other Color # 

Methods

other :: Value -> Color #

Other NamedFont # 

Methods

other :: Value -> NamedFont #

Other FontWeight # 

Methods

other :: Value -> FontWeight #

Other FontVariant # 

Methods

other :: Value -> FontVariant #

Other FontStyle # 

Methods

other :: Value -> FontStyle #

Other FontSize # 

Methods

other :: Value -> FontSize #

Other Stroke # 

Methods

other :: Value -> Stroke #

Other Location # 

Methods

other :: Value -> Location #

Other Direction # 

Methods

other :: Value -> Direction #

Other Side # 

Methods

other :: Value -> Side #

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

Methods

other :: Value -> Extend #

Other Radial # 

Methods

other :: Value -> Radial #

Other MaskComposite # 

Methods

other :: Value -> MaskComposite #

Other TextDecoration # 
Other WhiteSpace # 

Methods

other :: Value -> WhiteSpace #

Other TextAlign # 

Methods

other :: Value -> TextAlign #

Other TextDirection # 

Methods

other :: Value -> TextDirection #

Other TextIndent # 

Methods

other :: Value -> TextIndent #

Other TextRendering # 

Methods

other :: Value -> TextRendering #

Other FillMode # 

Methods

other :: Value -> FillMode #

Other PlayState # 

Methods

other :: Value -> PlayState #

Other AnimationName # 

Methods

other :: Value -> AnimationName #

Other IterationCount # 
Other AnimationDirection # 
Other (Angle a) # 

Methods

other :: Value -> Angle a #

Other (Size a) # 

Methods

other :: Value -> Size a #

browsers :: Prefixed #

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

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

Syntax for CSS function call.

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

Some auxiliary mathematical functions.

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