clay-0.13.1: CSS preprocessor as embedded Haskell.

Safe HaskellNone
LanguageHaskell98

Clay.Background

Contents

Synopsis

Generic background property.

class Val a => Background a where Source #

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 Source #

The background-color.

The background-position.

The background-size.

The background-repeat.

The background-origin.

The background-clip.

The background-attachment.

The background-image.

Specifying sides.

sideTop :: Side Source #

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

sideLeft :: Side Source #

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

sideRight :: Side Source #

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

sideBottom :: Side Source #

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

sideCenter :: Side Source #

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

sideMiddle :: Side Source #

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

Specifying directions and location.

class Val a => Loc a where Source #

Methods

location :: a -> Location Source #

Instances

Loc Side Source # 
Loc (Size a) Source # 

Methods

location :: Size a -> Location Source #

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

Methods

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

class Val a Source #

Minimal complete definition

value

Instances

Val Double Source # 

Methods

value :: Double -> Value Source #

Val Integer Source # 

Methods

value :: Integer -> Value Source #

Val Text Source # 

Methods

value :: Text -> Value Source #

Val Literal Source # 

Methods

value :: Literal -> Value Source #

Val Value Source # 

Methods

value :: Value -> Value Source #

Val Color Source # 

Methods

value :: Color -> Value Source #

Val MediaType Source # 
Val Resolution Source # 
Val ListStyleImage Source # 
Val ListStylePosition Source # 
Val ListStyleType Source # 
Val FontFaceSrc Source # 
Val NamedFont Source # 
Val FontWeight Source # 
Val FontVariant Source # 
Val FontStyle Source # 
Val FontSize Source # 

Methods

value :: FontSize -> Value Source #

Val Optional Source # 

Methods

value :: Optional -> Value Source #

Val JustifyContentValue Source # 
Val FlexWrap Source # 

Methods

value :: FlexWrap -> Value Source #

Val FlexDirection Source # 
Val AlignSelfValue Source # 
Val AlignItemsValue Source # 
Val AlignContentValue Source # 
Val Filter Source # 

Methods

value :: Filter -> Value Source #

Val UserFocus Source # 
Val UserSelect Source # 
Val UserModify Source # 
Val UserInput Source # 
Val PointerEvents Source # 
Val Clip Source # 

Methods

value :: Clip -> Value Source #

Val Visibility Source # 
Val Overflow Source # 

Methods

value :: Overflow -> Value Source #

Val Display Source # 

Methods

value :: Display -> Value Source #

Val Position Source # 

Methods

value :: Position -> Value Source #

Val Clear Source # 

Methods

value :: Clear -> Value Source #

Val FloatStyle Source # 
Val Stroke Source # 

Methods

value :: Stroke -> Value Source #

Val BoxType Source # 

Methods

value :: BoxType -> Value Source #

Val Location Source # 

Methods

value :: Location -> Value Source #

Val Direction Source # 
Val Side Source # 

Methods

value :: Side -> Value Source #

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

Methods

value :: Extend -> Value Source #

Val Radial Source # 

Methods

value :: Radial -> Value Source #

Val Content Source # 

Methods

value :: Content -> Value Source #

Val TextOverflow Source # 
Val OverflowWrap Source # 
Val WordBreak Source # 
Val TextTransform Source # 
Val TextDecoration Source # 
Val WhiteSpace Source # 
Val TextAlign Source # 
Val TextDirection Source # 
Val TextIndent Source # 
Val TextRendering Source # 
Val Time Source # 

Methods

value :: Time -> Value Source #

Val Transformation Source # 
Val TimingFunction Source # 
Val FillMode Source # 

Methods

value :: FillMode -> Value Source #

Val PlayState Source # 
Val AnimationName Source # 
Val IterationCount Source # 
Val AnimationDirection Source # 
Val a => Val [a] Source # 

Methods

value :: [a] -> Value Source #

Val a => Val (Maybe a) Source # 

Methods

value :: Maybe a -> Value Source #

Val a => Val (NonEmpty a) Source # 

Methods

value :: NonEmpty a -> Value Source #

Val (Angle a) Source # 

Methods

value :: Angle a -> Value Source #

Val (Size a) Source # 

Methods

value :: Size a -> Value Source #

Val (Required a) Source # 

Methods

value :: Required a -> Value Source #

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

Methods

value :: Either a b -> Value Source #

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

Methods

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