clay-0.3: CSS preprocessor as embedded Haskell.

Safe HaskellNone

Clay.Background

Contents

Synopsis

Generic background property.

class Val a => Background a whereSource

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 -> CssSource

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 :: SideSource

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

sideLeft :: SideSource

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

sideRight :: SideSource

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

sideBottom :: SideSource

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

sideCenter :: SideSource

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

sideMiddle :: SideSource

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

Specifying directions and location.

class Val a => Loc a Source

Instances

Loc Side 
Loc (Size a) 
(Loc a, Loc b) => Loc (a, b)