clay-0.13.1: 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

Methods

font :: a -> Css Source #

Instances

data Required a Source #

Constructors

Required (Size a) (Maybe (Size a)) [Text] [GenericFontFamily] 

Instances

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.

Font-style

Font-variant.

Font-weight

Named fonts.

Line-height.