Module

CSS.Size

#Size

newtype Size a

Constructors

Instances

#Abs

data Abs

#Rel

data Rel

#nil

nil :: forall a. Size a

Zero size.

#unitless

unitless :: forall a. Number -> Size a

Unitless size (as recommended for line-height).

#px

px :: Number -> Size Abs

Size in pixels.

#pt

pt :: Number -> Size Abs

Size in points (1pt = 1/72 of 1in).

#em

em :: Number -> Size Abs

Size in em's.

#ex

ex :: Number -> Size Abs

Size in ex'es (x-height of the first avaliable font).

#pct

pct :: Number -> Size Rel

SimpleSize in percents.

#rem

rem :: Number -> Size Rel

Size in rem's.

#vw

vw :: Number -> Size Rel

Size in vw's (1vw = 1% of viewport width).

#vh

vh :: Number -> Size Rel

Size in vh's (1vh = 1% of viewport height).

#vmin

vmin :: Number -> Size Rel

Size in vmin's (the smaller of vw or vh).

#vmax

vmax :: Number -> Size Rel

Size in vmax's (the larger of vw or vh).

#sym

sym :: forall a b. (a -> a -> a -> a -> b) -> a -> b

#Deg

data Deg

#Rad

data Rad

#Angle

newtype Angle a

Constructors

Instances

#deg

deg :: Number -> Angle Deg

Angle in degrees.

#rad

rad :: Number -> Angle Rad

Angle in radians.

Modules