clay-0.13.2: CSS preprocessor as embedded Haskell.

Safe HaskellNone
LanguageHaskell98

Clay.Font

Contents

Synopsis

Generic font property.

class Val a => Font a where Source #

We implement the generic font property as a type class that accepts multiple value types. This allows us to combine different font aspects into a shorthand syntax. Fonts require a mandatory part and have a optional a part.

http://www.w3.org/TR/css3-fonts/#font-prop

Minimal complete definition

Nothing

Methods

font :: a -> Css Source #

Instances
Font (Required a) Source # 
Instance details

Defined in Clay.Font

Methods

font :: Required a -> Css Source #

Font (Optional, Required a) Source # 
Instance details

Defined in Clay.Font

Methods

font :: (Optional, Required a) -> Css Source #

data Optional Source #

Instances
Val Optional Source # 
Instance details

Defined in Clay.Font

Methods

value :: Optional -> Value Source #

Font (Optional, Required a) Source # 
Instance details

Defined in Clay.Font

Methods

font :: (Optional, Required a) -> Css Source #

data Required a Source #

Constructors

Required (Size a) (Maybe (Size a)) [Text] [GenericFontFamily] 
Instances
Val (Required a) Source # 
Instance details

Defined in Clay.Font

Methods

value :: Required a -> Value Source #

Font (Required a) Source # 
Instance details

Defined in Clay.Font

Methods

font :: Required a -> Css Source #

Font (Optional, Required a) Source # 
Instance details

Defined in Clay.Font

Methods

font :: (Optional, Required a) -> Css Source #

Color.

fontColor :: Color -> Css Source #

An alias for color.

Font-family.

fontFamily :: [Text] -> [GenericFontFamily] -> Css Source #

The fontFamily style rules takes to lists of font families: zero or more custom font-families and preferably one or more generic font families.

sansSerif :: GenericFontFamily Source #

serif :: GenericFontFamily Source #

monospace :: GenericFontFamily Source #

cursive :: GenericFontFamily Source #

fantasy :: GenericFontFamily Source #

Font-size.

data FontSize Source #

Instances
Val FontSize Source # 
Instance details

Defined in Clay.Font

Methods

value :: FontSize -> Value Source #

Other FontSize Source # 
Instance details

Defined in Clay.Font

Methods

other :: Value -> FontSize Source #

Inherit FontSize Source # 
Instance details

Defined in Clay.Font

Auto FontSize Source # 
Instance details

Defined in Clay.Font

Methods

auto :: FontSize Source #

Font-style

data FontStyle Source #

Instances
Val FontStyle Source # 
Instance details

Defined in Clay.Font

Other FontStyle Source # 
Instance details

Defined in Clay.Font

Normal FontStyle Source # 
Instance details

Defined in Clay.Font

Inherit FontStyle Source # 
Instance details

Defined in Clay.Font

Font-variant.

data FontVariant Source #

Instances
Val FontVariant Source # 
Instance details

Defined in Clay.Font

Other FontVariant Source # 
Instance details

Defined in Clay.Font

Normal FontVariant Source # 
Instance details

Defined in Clay.Font

Inherit FontVariant Source # 
Instance details

Defined in Clay.Font

Font-weight

data FontWeight Source #

Instances
Val FontWeight Source # 
Instance details

Defined in Clay.Font

Other FontWeight Source # 
Instance details

Defined in Clay.Font

Normal FontWeight Source # 
Instance details

Defined in Clay.Font

Inherit FontWeight Source # 
Instance details

Defined in Clay.Font

Named fonts.

data NamedFont Source #

Instances
Val NamedFont Source # 
Instance details

Defined in Clay.Font

Other NamedFont Source # 
Instance details

Defined in Clay.Font

Line-height.