clay-0.9: CSS preprocessor as embedded Haskell.

Safe HaskellNone

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.

Instances

Size constructors.

px :: Integer -> Size AbsSource

Size in pixels.

pt :: Double -> Size AbsSource

Size in points.

em :: Double -> Size AbsSource

Size in em's.

ex :: Double -> Size AbsSource

Size in ex'es.

pct :: Double -> Size RelSource

Size in percentages.

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

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

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

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

Angle type.

data Deg Source

Instances

data Rad Source

Instances

Constructing angles.

deg :: Double -> Angle DegSource

Angle in degrees.

rad :: Double -> Angle RadSource

Angle in radians.