clay-0.10.1: CSS preprocessor as embedded Haskell.

Safe HaskellNone
LanguageHaskell98

Clay.Size

Contents

Synopsis

Size type.

data Size a Source

Instances

data Abs Source

Sizes can be absolute like pixels, points, etc.

Instances

data Rel Source

Sizes can be relative like percentages or rems.

Instances

Size constructors.

px :: Integer -> Size Abs Source

Size in pixels.

pt :: Double -> Size Abs Source

Size in points.

em :: Double -> Size Abs Source

Size in em's.

ex :: Double -> Size Abs Source

Size in ex'es.

pct :: Double -> Size Rel Source

Size in percentages.

rem :: Double -> Size Rel Source

Size in rem's.

Shorthands for properties that can be applied separately to each box side.

sym :: (a -> a -> a -> a -> Css) -> a -> Css Source

sym2 :: (a -> a -> a -> a -> Css) -> a -> a -> Css Source

sym3 :: (a -> a -> a -> a -> Css) -> a -> a -> a -> Css Source

Angle type.

data Deg Source

Instances

data Rad Source

Instances

Constructing angles.

deg :: Double -> Angle Deg Source

Angle in degrees.

rad :: Double -> Angle Rad Source

Angle in radians.