clay-0.14.0: CSS preprocessor as embedded Haskell.
Safe HaskellNone
LanguageHaskell2010

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 #

Methods

all :: a Source #

Instances

Instances details
All Value Source # 
Instance details

Defined in Clay.Common

Methods

all :: Value Source #

All MediaType Source # 
Instance details

Defined in Clay.Stylesheet

Methods

all :: MediaType Source #

All UserSelect Source # 
Instance details

Defined in Clay.Dynamic

class Auto a where Source #

Methods

auto :: a Source #

Instances

Instances details
Auto Value Source # 
Instance details

Defined in Clay.Common

Methods

auto :: Value Source #

Auto Color Source # 
Instance details

Defined in Clay.Color

Methods

auto :: Color Source #

Auto FontSize Source # 
Instance details

Defined in Clay.Font

Methods

auto :: FontSize Source #

Auto AlignSelfValue Source # 
Instance details

Defined in Clay.Flexbox

Auto UserFocus Source # 
Instance details

Defined in Clay.Dynamic

Auto PointerEvents Source # 
Instance details

Defined in Clay.Display

Auto Clip Source # 
Instance details

Defined in Clay.Display

Methods

auto :: Clip Source #

Auto Overflow Source # 
Instance details

Defined in Clay.Display

Methods

auto :: Overflow Source #

Auto Stroke Source # 
Instance details

Defined in Clay.Border

Methods

auto :: Stroke Source #

Auto BackgroundSize Source # 
Instance details

Defined in Clay.Background

Auto TextRendering Source # 
Instance details

Defined in Clay.Text

Auto Time Source # 
Instance details

Defined in Clay.Time

Methods

auto :: Time Source #

Auto TimingFunction Source # 
Instance details

Defined in Clay.Transition

Auto (Angle a) Source # 
Instance details

Defined in Clay.Size

Methods

auto :: Angle a Source #

Auto (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

auto :: Size a Source #

class Baseline a where Source #

Methods

baseline :: a Source #

Instances

Instances details
Baseline Value Source # 
Instance details

Defined in Clay.Common

Baseline AlignSelfValue Source # 
Instance details

Defined in Clay.Flexbox

Baseline AlignItemsValue Source # 
Instance details

Defined in Clay.Flexbox

class Center a where Source #

Methods

center :: a Source #

Instances

Instances details
Center Value Source # 
Instance details

Defined in Clay.Common

Methods

center :: Value Source #

Center JustifyContentValue Source # 
Instance details

Defined in Clay.Flexbox

Center AlignSelfValue Source # 
Instance details

Defined in Clay.Flexbox

Center AlignItemsValue Source # 
Instance details

Defined in Clay.Flexbox

Center AlignContentValue Source # 
Instance details

Defined in Clay.Flexbox

Center TextAlign Source # 
Instance details

Defined in Clay.Text

class Inherit a where Source #

Methods

inherit :: a Source #

Instances

Instances details
Inherit Value Source # 
Instance details

Defined in Clay.Common

Methods

inherit :: Value Source #

Inherit Color Source # 
Instance details

Defined in Clay.Color

Methods

inherit :: Color Source #

Inherit ListStyleImage Source # 
Instance details

Defined in Clay.List

Inherit ListStylePosition Source # 
Instance details

Defined in Clay.List

Inherit ListStyleType Source # 
Instance details

Defined in Clay.List

Inherit FontWeight Source # 
Instance details

Defined in Clay.Font

Inherit FontVariant Source # 
Instance details

Defined in Clay.Font

Inherit FontStyle Source # 
Instance details

Defined in Clay.Font

Inherit FontSize Source # 
Instance details

Defined in Clay.Font

Inherit JustifyContentValue Source # 
Instance details

Defined in Clay.Flexbox

Inherit AlignSelfValue Source # 
Instance details

Defined in Clay.Flexbox

Inherit AlignItemsValue Source # 
Instance details

Defined in Clay.Flexbox

Inherit AlignContentValue Source # 
Instance details

Defined in Clay.Flexbox

Inherit Filter Source # 
Instance details

Defined in Clay.Filter

Inherit UserFocus Source # 
Instance details

Defined in Clay.Dynamic

Inherit UserSelect Source # 
Instance details

Defined in Clay.Dynamic

Inherit UserModify Source # 
Instance details

Defined in Clay.Dynamic

Inherit UserInput Source # 
Instance details

Defined in Clay.Dynamic

Inherit PointerEvents Source # 
Instance details

Defined in Clay.Display

Inherit Clip Source # 
Instance details

Defined in Clay.Display

Methods

inherit :: Clip Source #

Inherit Visibility Source # 
Instance details

Defined in Clay.Display

Inherit Overflow Source # 
Instance details

Defined in Clay.Display

Inherit Display Source # 
Instance details

Defined in Clay.Display

Inherit Position Source # 
Instance details

Defined in Clay.Display

Inherit Clear Source # 
Instance details

Defined in Clay.Display

Methods

inherit :: Clear Source #

Inherit FloatStyle Source # 
Instance details

Defined in Clay.Display

Inherit Stroke Source # 
Instance details

Defined in Clay.Border

Inherit BoxType Source # 
Instance details

Defined in Clay.Box

Inherit Side Source # 
Instance details

Defined in Clay.Background

Methods

inherit :: Side Source #

Inherit BackgroundAttachment Source # 
Instance details

Defined in Clay.Background

Inherit BackgroundClip Source # 
Instance details

Defined in Clay.Background

Inherit BackgroundOrigin Source # 
Instance details

Defined in Clay.Background

Inherit BackgroundImage Source # 
Instance details

Defined in Clay.Background

Inherit BackgroundRepeat Source # 
Instance details

Defined in Clay.Background

Inherit BackgroundSize Source # 
Instance details

Defined in Clay.Background

Inherit BackgroundPosition Source # 
Instance details

Defined in Clay.Background

Inherit MaskComposite Source # 
Instance details

Defined in Clay.Mask

Inherit Content Source # 
Instance details

Defined in Clay.Text

Inherit TextOverflow Source # 
Instance details

Defined in Clay.Text

Inherit OverflowWrap Source # 
Instance details

Defined in Clay.Text

Inherit WordBreak Source # 
Instance details

Defined in Clay.Text

Inherit TextTransform Source # 
Instance details

Defined in Clay.Text

Inherit TextDecoration Source # 
Instance details

Defined in Clay.Text

Inherit WhiteSpace Source # 
Instance details

Defined in Clay.Text

Inherit TextAlign Source # 
Instance details

Defined in Clay.Text

Inherit TextDirection Source # 
Instance details

Defined in Clay.Text

Inherit TextIndent Source # 
Instance details

Defined in Clay.Text

Inherit TextRendering Source # 
Instance details

Defined in Clay.Text

Inherit Time Source # 
Instance details

Defined in Clay.Time

Methods

inherit :: Time Source #

Inherit TransformBox Source # 
Instance details

Defined in Clay.Transform

Inherit TransformStyle Source # 
Instance details

Defined in Clay.Transform

Inherit AnimationName Source # 
Instance details

Defined in Clay.Animation

Inherit (Angle a) Source # 
Instance details

Defined in Clay.Size

Methods

inherit :: Angle a Source #

Inherit (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

inherit :: Size a Source #

class None a where Source #

Methods

none :: a Source #

Instances

Instances details
None Value Source # 
Instance details

Defined in Clay.Common

Methods

none :: Value Source #

None Color Source # 
Instance details

Defined in Clay.Color

Methods

none :: Color Source #

None ListStyleImage Source # 
Instance details

Defined in Clay.List

None ListStyleType Source # 
Instance details

Defined in Clay.List

None Filter Source # 
Instance details

Defined in Clay.Filter

Methods

none :: Filter Source #

None UserFocus Source # 
Instance details

Defined in Clay.Dynamic

None UserSelect Source # 
Instance details

Defined in Clay.Dynamic

None UserInput Source # 
Instance details

Defined in Clay.Dynamic

None PointerEvents Source # 
Instance details

Defined in Clay.Display

None Display Source # 
Instance details

Defined in Clay.Display

Methods

none :: Display Source #

None Clear Source # 
Instance details

Defined in Clay.Display

Methods

none :: Clear Source #

None FloatStyle Source # 
Instance details

Defined in Clay.Display

None Stroke Source # 
Instance details

Defined in Clay.Border

Methods

none :: Stroke Source #

None BackgroundImage Source # 
Instance details

Defined in Clay.Background

None BackgroundRepeat Source # 
Instance details

Defined in Clay.Background

None MaskComposite Source # 
Instance details

Defined in Clay.Mask

None Content Source # 
Instance details

Defined in Clay.Text

Methods

none :: Content Source #

None TextOverflow Source # 
Instance details

Defined in Clay.Text

None TextTransform Source # 
Instance details

Defined in Clay.Text

None TextDecoration Source # 
Instance details

Defined in Clay.Text

None Time Source # 
Instance details

Defined in Clay.Time

Methods

none :: Time Source #

None Transformation Source # 
Instance details

Defined in Clay.Transform

None FillMode Source # 
Instance details

Defined in Clay.Animation

Methods

none :: FillMode Source #

None (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

none :: Size a Source #

class Normal a where Source #

Methods

normal :: a Source #

Instances

Instances details
Normal Value Source # 
Instance details

Defined in Clay.Common

Methods

normal :: Value Source #

Normal FontWeight Source # 
Instance details

Defined in Clay.Font

Normal FontVariant Source # 
Instance details

Defined in Clay.Font

Normal FontStyle Source # 
Instance details

Defined in Clay.Font

Normal UserFocus Source # 
Instance details

Defined in Clay.Dynamic

Normal Content Source # 
Instance details

Defined in Clay.Text

Normal OverflowWrap Source # 
Instance details

Defined in Clay.Text

Normal WordBreak Source # 
Instance details

Defined in Clay.Text

Normal WhiteSpace Source # 
Instance details

Defined in Clay.Text

Normal TextAlign Source # 
Instance details

Defined in Clay.Text

Normal TextDirection Source # 
Instance details

Defined in Clay.Text

Normal Time Source # 
Instance details

Defined in Clay.Time

Methods

normal :: Time Source #

Normal IterationCount Source # 
Instance details

Defined in Clay.Animation

Normal AnimationDirection Source # 
Instance details

Defined in Clay.Animation

Normal (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

normal :: Size a Source #

class Visible a where Source #

Methods

visible :: a Source #

Instances

Instances details
Visible Value Source # 
Instance details

Defined in Clay.Common

Methods

visible :: Value Source #

Visible PointerEvents Source # 
Instance details

Defined in Clay.Display

Visible Visibility Source # 
Instance details

Defined in Clay.Display

Visible Overflow Source # 
Instance details

Defined in Clay.Display

class Hidden a where Source #

Methods

hidden :: a Source #

Instances

Instances details
Hidden Value Source # 
Instance details

Defined in Clay.Common

Methods

hidden :: Value Source #

Hidden Visibility Source # 
Instance details

Defined in Clay.Display

Hidden Overflow Source # 
Instance details

Defined in Clay.Display

class Initial a where Source #

Methods

initial :: a Source #

Instances

Instances details
Initial Value Source # 
Instance details

Defined in Clay.Common

Methods

initial :: Value Source #

Initial ListStyleImage Source # 
Instance details

Defined in Clay.List

Initial ListStylePosition Source # 
Instance details

Defined in Clay.List

Initial ListStyleType Source # 
Instance details

Defined in Clay.List

Initial Content Source # 
Instance details

Defined in Clay.Text

Initial TextOverflow Source # 
Instance details

Defined in Clay.Text

Initial OverflowWrap Source # 
Instance details

Defined in Clay.Text

Initial WordBreak Source # 
Instance details

Defined in Clay.Text

Initial TextIndent Source # 
Instance details

Defined in Clay.Text

Initial TransformBox Source # 
Instance details

Defined in Clay.Transform

Initial TransformStyle Source # 
Instance details

Defined in Clay.Transform

Initial AnimationName Source # 
Instance details

Defined in Clay.Animation

class Unset a where Source #

Methods

unset :: a Source #

Instances

Instances details
Unset Value Source # 
Instance details

Defined in Clay.Common

Methods

unset :: Value Source #

Unset Visibility Source # 
Instance details

Defined in Clay.Display

Unset OverflowWrap Source # 
Instance details

Defined in Clay.Text

Unset WordBreak Source # 
Instance details

Defined in Clay.Text

Unset TextIndent Source # 
Instance details

Defined in Clay.Text

Unset TransformBox Source # 
Instance details

Defined in Clay.Transform

Unset TransformStyle Source # 
Instance details

Defined in Clay.Transform

Unset AnimationName Source # 
Instance details

Defined in Clay.Animation

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.

Methods

other :: Value -> a Source #

Instances

Instances details
Other Value Source # 
Instance details

Defined in Clay.Common

Methods

other :: Value -> Value Source #

Other Color Source # 
Instance details

Defined in Clay.Color

Methods

other :: Value -> Color Source #

Other MediaType Source # 
Instance details

Defined in Clay.Stylesheet

Other Resolution Source # 
Instance details

Defined in Clay.Media

Other ListStyleImage Source # 
Instance details

Defined in Clay.List

Other ListStylePosition Source # 
Instance details

Defined in Clay.List

Other ListStyleType Source # 
Instance details

Defined in Clay.List

Other NamedFont Source # 
Instance details

Defined in Clay.Font

Other FontWeight Source # 
Instance details

Defined in Clay.Font

Other FontVariant Source # 
Instance details

Defined in Clay.Font

Other FontStyle Source # 
Instance details

Defined in Clay.Font

Other FontSize Source # 
Instance details

Defined in Clay.Font

Methods

other :: Value -> FontSize Source #

Other JustifyContentValue Source # 
Instance details

Defined in Clay.Flexbox

Other FlexWrap Source # 
Instance details

Defined in Clay.Flexbox

Methods

other :: Value -> FlexWrap Source #

Other FlexDirection Source # 
Instance details

Defined in Clay.Flexbox

Other AlignSelfValue Source # 
Instance details

Defined in Clay.Flexbox

Other AlignItemsValue Source # 
Instance details

Defined in Clay.Flexbox

Other AlignContentValue Source # 
Instance details

Defined in Clay.Flexbox

Other PointerEvents Source # 
Instance details

Defined in Clay.Display

Other Clip Source # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Clip Source #

Other Visibility Source # 
Instance details

Defined in Clay.Display

Other Overflow Source # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Overflow Source #

Other Display Source # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Display Source #

Other Position Source # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Position Source #

Other Clear Source # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Clear Source #

Other Stroke Source # 
Instance details

Defined in Clay.Border

Methods

other :: Value -> Stroke Source #

Other Location Source # 
Instance details

Defined in Clay.Background

Methods

other :: Value -> Location Source #

Other Direction Source # 
Instance details

Defined in Clay.Background

Other Side Source # 
Instance details

Defined in Clay.Background

Methods

other :: Value -> Side Source #

Other BackgroundAttachment Source # 
Instance details

Defined in Clay.Background

Other BackgroundClip Source # 
Instance details

Defined in Clay.Background

Other BackgroundOrigin Source # 
Instance details

Defined in Clay.Background

Other BackgroundImage Source # 
Instance details

Defined in Clay.Background

Other BackgroundRepeat Source # 
Instance details

Defined in Clay.Background

Other BackgroundSize Source # 
Instance details

Defined in Clay.Background

Other BackgroundPosition Source # 
Instance details

Defined in Clay.Background

Other MaskComposite Source # 
Instance details

Defined in Clay.Mask

Other Extend Source # 
Instance details

Defined in Clay.Gradient

Methods

other :: Value -> Extend Source #

Other Radial Source # 
Instance details

Defined in Clay.Gradient

Methods

other :: Value -> Radial Source #

Other TextDecoration Source # 
Instance details

Defined in Clay.Text

Other WhiteSpace Source # 
Instance details

Defined in Clay.Text

Other TextAlign Source # 
Instance details

Defined in Clay.Text

Other TextDirection Source # 
Instance details

Defined in Clay.Text

Other TextIndent Source # 
Instance details

Defined in Clay.Text

Other TextRendering Source # 
Instance details

Defined in Clay.Text

Other Time Source # 
Instance details

Defined in Clay.Time

Methods

other :: Value -> Time Source #

Other TimingFunction Source # 
Instance details

Defined in Clay.Transition

Other FillMode Source # 
Instance details

Defined in Clay.Animation

Methods

other :: Value -> FillMode Source #

Other PlayState Source # 
Instance details

Defined in Clay.Animation

Other AnimationName Source # 
Instance details

Defined in Clay.Animation

Other IterationCount Source # 
Instance details

Defined in Clay.Animation

Other AnimationDirection Source # 
Instance details

Defined in Clay.Animation

Other (Angle a) Source # 
Instance details

Defined in Clay.Size

Methods

other :: Value -> Angle a Source #

Other (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

other :: Value -> Size a Source #

webkitPrefix :: (Text, Text) 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 #