clay-0.12.2: CSS preprocessor as embedded Haskell.

Safe HaskellNone
LanguageHaskell98

Clay.Background

Contents

Synopsis

Generic background property.

class Val a => Background a where #

We implement the generic background property as a type class that accepts multiple value types. This allows us to combine different background aspects into a shorthand syntax.

Methods

background :: a -> Css #

The background-color.

The background-position.

The background-size.

by :: Size a -> Size b -> BackgroundSize #

The background-repeat.

The background-origin.

The background-clip.

The background-attachment.

The background-image.

Specifying sides.

data Side #

Instances

Val Side # 

Methods

value :: Side -> Value #

Other Side # 

Methods

other :: Value -> Side #

Inherit Side # 

Methods

inherit :: Side #

Loc Side # 

Methods

location :: Side -> Location #

sideTop :: Side #

We have to prefix these values to avoid conflict with existing property names.

sideLeft :: Side #

We have to prefix these values to avoid conflict with existing property names.

sideRight :: Side #

We have to prefix these values to avoid conflict with existing property names.

sideBottom :: Side #

We have to prefix these values to avoid conflict with existing property names.

sideCenter :: Side #

We have to prefix these values to avoid conflict with existing property names.

sideMiddle :: Side #

We have to prefix these values to avoid conflict with existing property names.

Specifying directions and location.

data Direction #

Instances

data Location #

Instances

class Val a => Loc a where #

Methods

location :: a -> Location #

Instances

Loc Side # 

Methods

location :: Side -> Location #

Loc (Size a) # 

Methods

location :: Size a -> Location #

(Loc a, Loc b) => Loc (a, b) # 

Methods

location :: (a, b) -> Location #

class Val a #

Minimal complete definition

value

Instances

Val Double # 

Methods

value :: Double -> Value #

Val Integer # 

Methods

value :: Integer -> Value #

Val Text # 

Methods

value :: Text -> Value #

Val Literal # 

Methods

value :: Literal -> Value #

Val Value # 

Methods

value :: Value -> Value #

Val Color # 

Methods

value :: Color -> Value #

Val MediaType # 

Methods

value :: MediaType -> Value #

Val Resolution # 

Methods

value :: Resolution -> Value #

Val ListStyleImage # 
Val ListStylePosition # 
Val ListStyleType # 

Methods

value :: ListStyleType -> Value #

Val FontFaceSrc # 

Methods

value :: FontFaceSrc -> Value #

Val NamedFont # 

Methods

value :: NamedFont -> Value #

Val FontWeight # 

Methods

value :: FontWeight -> Value #

Val FontVariant # 

Methods

value :: FontVariant -> Value #

Val FontStyle # 

Methods

value :: FontStyle -> Value #

Val FontSize # 

Methods

value :: FontSize -> Value #

Val Optional # 

Methods

value :: Optional -> Value #

Val JustifyContentValue # 
Val FlexWrap # 

Methods

value :: FlexWrap -> Value #

Val FlexDirection # 

Methods

value :: FlexDirection -> Value #

Val AlignSelfValue # 
Val AlignItemsValue # 
Val AlignContentValue # 
Val Filter # 

Methods

value :: Filter -> Value #

Val UserFocus # 

Methods

value :: UserFocus -> Value #

Val UserSelect # 

Methods

value :: UserSelect -> Value #

Val UserModify # 

Methods

value :: UserModify -> Value #

Val UserInput # 

Methods

value :: UserInput -> Value #

Val PointerEvents # 

Methods

value :: PointerEvents -> Value #

Val Clip # 

Methods

value :: Clip -> Value #

Val Visibility # 

Methods

value :: Visibility -> Value #

Val Overflow # 

Methods

value :: Overflow -> Value #

Val Display # 

Methods

value :: Display -> Value #

Val Position # 

Methods

value :: Position -> Value #

Val Clear # 

Methods

value :: Clear -> Value #

Val FloatStyle # 

Methods

value :: FloatStyle -> Value #

Val Stroke # 

Methods

value :: Stroke -> Value #

Val BoxType # 

Methods

value :: BoxType -> Value #

Val Location # 

Methods

value :: Location -> Value #

Val Direction # 

Methods

value :: Direction -> Value #

Val Side # 

Methods

value :: Side -> Value #

Val BackgroundAttachment # 
Val BackgroundClip # 
Val BackgroundOrigin # 
Val BackgroundImage # 
Val BackgroundRepeat # 
Val BackgroundSize # 
Val BackgroundPosition # 
Val MaskComposite # 

Methods

value :: MaskComposite -> Value #

Val Extend # 

Methods

value :: Extend -> Value #

Val Radial # 

Methods

value :: Radial -> Value #

Val Content # 

Methods

value :: Content -> Value #

Val TextOverflow # 

Methods

value :: TextOverflow -> Value #

Val OverflowWrap # 

Methods

value :: OverflowWrap -> Value #

Val WordBreak # 

Methods

value :: WordBreak -> Value #

Val TextTransform # 

Methods

value :: TextTransform -> Value #

Val TextDecoration # 
Val WhiteSpace # 

Methods

value :: WhiteSpace -> Value #

Val TextAlign # 

Methods

value :: TextAlign -> Value #

Val TextDirection # 

Methods

value :: TextDirection -> Value #

Val TextIndent # 

Methods

value :: TextIndent -> Value #

Val TextRendering # 

Methods

value :: TextRendering -> Value #

Val Time # 

Methods

value :: Time -> Value #

Val Transformation # 
Val TimingFunction # 
Val FillMode # 

Methods

value :: FillMode -> Value #

Val PlayState # 

Methods

value :: PlayState -> Value #

Val AnimationName # 

Methods

value :: AnimationName -> Value #

Val IterationCount # 
Val AnimationDirection # 
Val a => Val [a] # 

Methods

value :: [a] -> Value #

Val a => Val (Maybe a) # 

Methods

value :: Maybe a -> Value #

Val (Angle a) # 

Methods

value :: Angle a -> Value #

Val (Size a) # 

Methods

value :: Size a -> Value #

Val (Required a) # 

Methods

value :: Required a -> Value #

(Val a, Val b) => Val (Either a b) # 

Methods

value :: Either a b -> Value #

(Val a, Val b) => Val (a, b) # 

Methods

value :: (a, b) -> Value #

location :: Loc a => a -> Location #