clay-0.15.0: CSS preprocessor as embedded Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Clay.Font

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

Instances details
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

Instances details
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

Instances details
Font (Required a) Source # 
Instance details

Defined in Clay.Font

Methods

font :: Required a -> Css Source #

Val (Required a) Source # 
Instance details

Defined in Clay.Font

Methods

value :: Required a -> Value 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

Instances details
Auto FontSize Source # 
Instance details

Defined in Clay.Font

Methods

auto :: FontSize Source #

Inherit FontSize Source # 
Instance details

Defined in Clay.Font

Other FontSize Source # 
Instance details

Defined in Clay.Font

Methods

other :: Value -> FontSize Source #

Val FontSize Source # 
Instance details

Defined in Clay.Font

Methods

value :: FontSize -> Value Source #

Font-style

data FontStyle Source #

Instances

Instances details
Inherit FontStyle Source # 
Instance details

Defined in Clay.Font

Normal FontStyle Source # 
Instance details

Defined in Clay.Font

Other FontStyle Source # 
Instance details

Defined in Clay.Font

Val FontStyle Source # 
Instance details

Defined in Clay.Font

Font-variant.

data FontVariant Source #

Instances

Instances details
Inherit FontVariant Source # 
Instance details

Defined in Clay.Font

Normal FontVariant Source # 
Instance details

Defined in Clay.Font

Other FontVariant Source # 
Instance details

Defined in Clay.Font

Val FontVariant Source # 
Instance details

Defined in Clay.Font

Font-weight

data FontWeight Source #

Instances

Instances details
Inherit FontWeight Source # 
Instance details

Defined in Clay.Font

Normal FontWeight Source # 
Instance details

Defined in Clay.Font

Other FontWeight Source # 
Instance details

Defined in Clay.Font

Val FontWeight Source # 
Instance details

Defined in Clay.Font

Named fonts.

data NamedFont Source #

Instances

Instances details
Other NamedFont Source # 
Instance details

Defined in Clay.Font

Val NamedFont Source # 
Instance details

Defined in Clay.Font

Line-height.