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 #

Minimal complete definition

all

Methods

all :: a #

Instances
All Value # 
Instance details

Defined in Clay.Common

Methods

all :: Value #

All MediaType # 
Instance details

Defined in Clay.Stylesheet

Methods

all :: MediaType #

All UserSelect # 
Instance details

Defined in Clay.Dynamic

Methods

all :: UserSelect #

class Auto a where #

Minimal complete definition

auto

Methods

auto :: a #

Instances
Auto Value # 
Instance details

Defined in Clay.Common

Methods

auto :: Value #

Auto Color # 
Instance details

Defined in Clay.Color

Methods

auto :: Color #

Auto FontSize # 
Instance details

Defined in Clay.Font

Methods

auto :: FontSize #

Auto AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

Auto UserFocus # 
Instance details

Defined in Clay.Dynamic

Methods

auto :: UserFocus #

Auto PointerEvents # 
Instance details

Defined in Clay.Display

Methods

auto :: PointerEvents #

Auto Clip # 
Instance details

Defined in Clay.Display

Methods

auto :: Clip #

Auto Visibility # 
Instance details

Defined in Clay.Display

Methods

auto :: Visibility #

Auto Overflow # 
Instance details

Defined in Clay.Display

Methods

auto :: Overflow #

Auto Stroke # 
Instance details

Defined in Clay.Border

Methods

auto :: Stroke #

Auto BackgroundSize # 
Instance details

Defined in Clay.Background

Auto TextRendering # 
Instance details

Defined in Clay.Text

Methods

auto :: TextRendering #

Auto Time # 
Instance details

Defined in Clay.Time

Methods

auto :: Time #

Auto TimingFunction # 
Instance details

Defined in Clay.Transition

Auto (Angle a) # 
Instance details

Defined in Clay.Size

Methods

auto :: Angle a #

Auto (Size a) # 
Instance details

Defined in Clay.Size

Methods

auto :: Size a #

class Baseline a where #

Minimal complete definition

baseline

Methods

baseline :: a #

Instances
Baseline Value # 
Instance details

Defined in Clay.Common

Methods

baseline :: Value #

Baseline AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

Baseline AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

class Center a where #

Minimal complete definition

center

Methods

center :: a #

Instances
Center Value # 
Instance details

Defined in Clay.Common

Methods

center :: Value #

Center JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

Center AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

Center AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

Center AlignContentValue # 
Instance details

Defined in Clay.Flexbox

Center TextAlign # 
Instance details

Defined in Clay.Text

Methods

center :: TextAlign #

class Inherit a where #

Minimal complete definition

inherit

Methods

inherit :: a #

Instances
Inherit Value # 
Instance details

Defined in Clay.Common

Methods

inherit :: Value #

Inherit Color # 
Instance details

Defined in Clay.Color

Methods

inherit :: Color #

Inherit ListStyleImage # 
Instance details

Defined in Clay.List

Inherit ListStylePosition # 
Instance details

Defined in Clay.List

Inherit ListStyleType # 
Instance details

Defined in Clay.List

Inherit FontWeight # 
Instance details

Defined in Clay.Font

Methods

inherit :: FontWeight #

Inherit FontVariant # 
Instance details

Defined in Clay.Font

Inherit FontStyle # 
Instance details

Defined in Clay.Font

Methods

inherit :: FontStyle #

Inherit FontSize # 
Instance details

Defined in Clay.Font

Methods

inherit :: FontSize #

Inherit JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

Inherit AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

Inherit AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

Inherit AlignContentValue # 
Instance details

Defined in Clay.Flexbox

Inherit Filter # 
Instance details

Defined in Clay.Filter

Methods

inherit :: Filter #

Inherit UserFocus # 
Instance details

Defined in Clay.Dynamic

Methods

inherit :: UserFocus #

Inherit UserSelect # 
Instance details

Defined in Clay.Dynamic

Methods

inherit :: UserSelect #

Inherit UserModify # 
Instance details

Defined in Clay.Dynamic

Methods

inherit :: UserModify #

Inherit UserInput # 
Instance details

Defined in Clay.Dynamic

Methods

inherit :: UserInput #

Inherit PointerEvents # 
Instance details

Defined in Clay.Display

Inherit Clip # 
Instance details

Defined in Clay.Display

Methods

inherit :: Clip #

Inherit Visibility # 
Instance details

Defined in Clay.Display

Methods

inherit :: Visibility #

Inherit Overflow # 
Instance details

Defined in Clay.Display

Methods

inherit :: Overflow #

Inherit Display # 
Instance details

Defined in Clay.Display

Methods

inherit :: Display #

Inherit Position # 
Instance details

Defined in Clay.Display

Methods

inherit :: Position #

Inherit Clear # 
Instance details

Defined in Clay.Display

Methods

inherit :: Clear #

Inherit FloatStyle # 
Instance details

Defined in Clay.Display

Methods

inherit :: FloatStyle #

Inherit Stroke # 
Instance details

Defined in Clay.Border

Methods

inherit :: Stroke #

Inherit BoxType # 
Instance details

Defined in Clay.Box

Methods

inherit :: BoxType #

Inherit Side # 
Instance details

Defined in Clay.Background

Methods

inherit :: Side #

Inherit BackgroundAttachment # 
Instance details

Defined in Clay.Background

Inherit BackgroundClip # 
Instance details

Defined in Clay.Background

Inherit BackgroundOrigin # 
Instance details

Defined in Clay.Background

Inherit BackgroundImage # 
Instance details

Defined in Clay.Background

Inherit BackgroundRepeat # 
Instance details

Defined in Clay.Background

Inherit BackgroundSize # 
Instance details

Defined in Clay.Background

Inherit BackgroundPosition # 
Instance details

Defined in Clay.Background

Inherit MaskComposite # 
Instance details

Defined in Clay.Mask

Inherit Content # 
Instance details

Defined in Clay.Text

Methods

inherit :: Content #

Inherit TextOverflow # 
Instance details

Defined in Clay.Text

Inherit OverflowWrap # 
Instance details

Defined in Clay.Text

Inherit WordBreak # 
Instance details

Defined in Clay.Text

Methods

inherit :: WordBreak #

Inherit TextTransform # 
Instance details

Defined in Clay.Text

Inherit TextDecoration # 
Instance details

Defined in Clay.Text

Inherit WhiteSpace # 
Instance details

Defined in Clay.Text

Methods

inherit :: WhiteSpace #

Inherit TextAlign # 
Instance details

Defined in Clay.Text

Methods

inherit :: TextAlign #

Inherit TextDirection # 
Instance details

Defined in Clay.Text

Inherit TextIndent # 
Instance details

Defined in Clay.Text

Methods

inherit :: TextIndent #

Inherit TextRendering # 
Instance details

Defined in Clay.Text

Inherit Time # 
Instance details

Defined in Clay.Time

Methods

inherit :: Time #

Inherit AnimationName # 
Instance details

Defined in Clay.Animation

Inherit (Angle a) # 
Instance details

Defined in Clay.Size

Methods

inherit :: Angle a #

Inherit (Size a) # 
Instance details

Defined in Clay.Size

Methods

inherit :: Size a #

class None a where #

Minimal complete definition

none

Methods

none :: a #

Instances
None Value # 
Instance details

Defined in Clay.Common

Methods

none :: Value #

None Color # 
Instance details

Defined in Clay.Color

Methods

none :: Color #

None ListStyleImage # 
Instance details

Defined in Clay.List

None ListStylePosition # 
Instance details

Defined in Clay.List

None ListStyleType # 
Instance details

Defined in Clay.List

Methods

none :: ListStyleType #

None Filter # 
Instance details

Defined in Clay.Filter

Methods

none :: Filter #

None UserFocus # 
Instance details

Defined in Clay.Dynamic

Methods

none :: UserFocus #

None UserSelect # 
Instance details

Defined in Clay.Dynamic

Methods

none :: UserSelect #

None UserInput # 
Instance details

Defined in Clay.Dynamic

Methods

none :: UserInput #

None PointerEvents # 
Instance details

Defined in Clay.Display

Methods

none :: PointerEvents #

None Display # 
Instance details

Defined in Clay.Display

Methods

none :: Display #

None Clear # 
Instance details

Defined in Clay.Display

Methods

none :: Clear #

None FloatStyle # 
Instance details

Defined in Clay.Display

Methods

none :: FloatStyle #

None Stroke # 
Instance details

Defined in Clay.Border

Methods

none :: Stroke #

None BackgroundImage # 
Instance details

Defined in Clay.Background

None BackgroundRepeat # 
Instance details

Defined in Clay.Background

None MaskComposite # 
Instance details

Defined in Clay.Mask

Methods

none :: MaskComposite #

None Content # 
Instance details

Defined in Clay.Text

Methods

none :: Content #

None TextOverflow # 
Instance details

Defined in Clay.Text

Methods

none :: TextOverflow #

None TextTransform # 
Instance details

Defined in Clay.Text

Methods

none :: TextTransform #

None TextDecoration # 
Instance details

Defined in Clay.Text

None Time # 
Instance details

Defined in Clay.Time

Methods

none :: Time #

None Transformation # 
Instance details

Defined in Clay.Transform

None FillMode # 
Instance details

Defined in Clay.Animation

Methods

none :: FillMode #

None (Size a) # 
Instance details

Defined in Clay.Size

Methods

none :: Size a #

class Normal a where #

Minimal complete definition

normal

Methods

normal :: a #

Instances
Normal Value # 
Instance details

Defined in Clay.Common

Methods

normal :: Value #

Normal FontWeight # 
Instance details

Defined in Clay.Font

Methods

normal :: FontWeight #

Normal FontVariant # 
Instance details

Defined in Clay.Font

Methods

normal :: FontVariant #

Normal FontStyle # 
Instance details

Defined in Clay.Font

Methods

normal :: FontStyle #

Normal UserFocus # 
Instance details

Defined in Clay.Dynamic

Methods

normal :: UserFocus #

Normal Content # 
Instance details

Defined in Clay.Text

Methods

normal :: Content #

Normal OverflowWrap # 
Instance details

Defined in Clay.Text

Normal WordBreak # 
Instance details

Defined in Clay.Text

Methods

normal :: WordBreak #

Normal WhiteSpace # 
Instance details

Defined in Clay.Text

Methods

normal :: WhiteSpace #

Normal TextAlign # 
Instance details

Defined in Clay.Text

Methods

normal :: TextAlign #

Normal TextDirection # 
Instance details

Defined in Clay.Text

Normal Time # 
Instance details

Defined in Clay.Time

Methods

normal :: Time #

Normal IterationCount # 
Instance details

Defined in Clay.Animation

Normal AnimationDirection # 
Instance details

Defined in Clay.Animation

Normal (Size a) # 
Instance details

Defined in Clay.Size

Methods

normal :: Size a #

class Visible a where #

Minimal complete definition

visible

Methods

visible :: a #

Instances
Visible Value # 
Instance details

Defined in Clay.Common

Methods

visible :: Value #

Visible PointerEvents # 
Instance details

Defined in Clay.Display

Visible Visibility # 
Instance details

Defined in Clay.Display

Methods

visible :: Visibility #

Visible Overflow # 
Instance details

Defined in Clay.Display

Methods

visible :: Overflow #

class Hidden a where #

Minimal complete definition

hidden

Methods

hidden :: a #

Instances
Hidden Value # 
Instance details

Defined in Clay.Common

Methods

hidden :: Value #

Hidden Visibility # 
Instance details

Defined in Clay.Display

Methods

hidden :: Visibility #

Hidden Overflow # 
Instance details

Defined in Clay.Display

Methods

hidden :: Overflow #

class Initial a where #

Minimal complete definition

initial

Methods

initial :: a #

Instances
Initial Value # 
Instance details

Defined in Clay.Common

Methods

initial :: Value #

Initial ListStyleImage # 
Instance details

Defined in Clay.List

Initial ListStylePosition # 
Instance details

Defined in Clay.List

Initial ListStyleType # 
Instance details

Defined in Clay.List

Initial Content # 
Instance details

Defined in Clay.Text

Methods

initial :: Content #

Initial TextOverflow # 
Instance details

Defined in Clay.Text

Initial OverflowWrap # 
Instance details

Defined in Clay.Text

Initial WordBreak # 
Instance details

Defined in Clay.Text

Methods

initial :: WordBreak #

Initial TextIndent # 
Instance details

Defined in Clay.Text

Methods

initial :: TextIndent #

Initial AnimationName # 
Instance details

Defined in Clay.Animation

class Unset a where #

Minimal complete definition

unset

Methods

unset :: a #

Instances
Unset Value # 
Instance details

Defined in Clay.Common

Methods

unset :: Value #

Unset OverflowWrap # 
Instance details

Defined in Clay.Text

Methods

unset :: OverflowWrap #

Unset WordBreak # 
Instance details

Defined in Clay.Text

Methods

unset :: WordBreak #

Unset TextIndent # 
Instance details

Defined in Clay.Text

Methods

unset :: TextIndent #

Unset AnimationName # 
Instance details

Defined in Clay.Animation

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 # 
Instance details

Defined in Clay.Common

Methods

other :: Value -> Value #

Other Color # 
Instance details

Defined in Clay.Color

Methods

other :: Value -> Color #

Other MediaType # 
Instance details

Defined in Clay.Stylesheet

Methods

other :: Value -> MediaType #

Other Resolution # 
Instance details

Defined in Clay.Media

Methods

other :: Value -> Resolution #

Other ListStyleImage # 
Instance details

Defined in Clay.List

Other ListStylePosition # 
Instance details

Defined in Clay.List

Other ListStyleType # 
Instance details

Defined in Clay.List

Methods

other :: Value -> ListStyleType #

Other NamedFont # 
Instance details

Defined in Clay.Font

Methods

other :: Value -> NamedFont #

Other FontWeight # 
Instance details

Defined in Clay.Font

Methods

other :: Value -> FontWeight #

Other FontVariant # 
Instance details

Defined in Clay.Font

Methods

other :: Value -> FontVariant #

Other FontStyle # 
Instance details

Defined in Clay.Font

Methods

other :: Value -> FontStyle #

Other FontSize # 
Instance details

Defined in Clay.Font

Methods

other :: Value -> FontSize #

Other JustifyContentValue # 
Instance details

Defined in Clay.Flexbox

Other FlexWrap # 
Instance details

Defined in Clay.Flexbox

Methods

other :: Value -> FlexWrap #

Other FlexDirection # 
Instance details

Defined in Clay.Flexbox

Methods

other :: Value -> FlexDirection #

Other AlignSelfValue # 
Instance details

Defined in Clay.Flexbox

Other AlignItemsValue # 
Instance details

Defined in Clay.Flexbox

Other AlignContentValue # 
Instance details

Defined in Clay.Flexbox

Other PointerEvents # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> PointerEvents #

Other Clip # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Clip #

Other Visibility # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Visibility #

Other Overflow # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Overflow #

Other Display # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Display #

Other Position # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Position #

Other Clear # 
Instance details

Defined in Clay.Display

Methods

other :: Value -> Clear #

Other Stroke # 
Instance details

Defined in Clay.Border

Methods

other :: Value -> Stroke #

Other Location # 
Instance details

Defined in Clay.Background

Methods

other :: Value -> Location #

Other Direction # 
Instance details

Defined in Clay.Background

Methods

other :: Value -> Direction #

Other Side # 
Instance details

Defined in Clay.Background

Methods

other :: Value -> Side #

Other BackgroundAttachment # 
Instance details

Defined in Clay.Background

Other BackgroundClip # 
Instance details

Defined in Clay.Background

Other BackgroundOrigin # 
Instance details

Defined in Clay.Background

Other BackgroundImage # 
Instance details

Defined in Clay.Background

Other BackgroundRepeat # 
Instance details

Defined in Clay.Background

Other BackgroundSize # 
Instance details

Defined in Clay.Background

Other BackgroundPosition # 
Instance details

Defined in Clay.Background

Other MaskComposite # 
Instance details

Defined in Clay.Mask

Methods

other :: Value -> MaskComposite #

Other Extend # 
Instance details

Defined in Clay.Gradient

Methods

other :: Value -> Extend #

Other Radial # 
Instance details

Defined in Clay.Gradient

Methods

other :: Value -> Radial #

Other TextDecoration # 
Instance details

Defined in Clay.Text

Other WhiteSpace # 
Instance details

Defined in Clay.Text

Methods

other :: Value -> WhiteSpace #

Other TextAlign # 
Instance details

Defined in Clay.Text

Methods

other :: Value -> TextAlign #

Other TextDirection # 
Instance details

Defined in Clay.Text

Methods

other :: Value -> TextDirection #

Other TextIndent # 
Instance details

Defined in Clay.Text

Methods

other :: Value -> TextIndent #

Other TextRendering # 
Instance details

Defined in Clay.Text

Methods

other :: Value -> TextRendering #

Other Time # 
Instance details

Defined in Clay.Time

Methods

other :: Value -> Time #

Other TimingFunction # 
Instance details

Defined in Clay.Transition

Other FillMode # 
Instance details

Defined in Clay.Animation

Methods

other :: Value -> FillMode #

Other PlayState # 
Instance details

Defined in Clay.Animation

Methods

other :: Value -> PlayState #

Other AnimationName # 
Instance details

Defined in Clay.Animation

Methods

other :: Value -> AnimationName #

Other IterationCount # 
Instance details

Defined in Clay.Animation

Other AnimationDirection # 
Instance details

Defined in Clay.Animation

Other (Angle a) # 
Instance details

Defined in Clay.Size

Methods

other :: Value -> Angle a #

Other (Size a) # 
Instance details

Defined in Clay.Size

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 #