niagra-0.2.0: CSS EDSL for Haskell

Safe HaskellNone
LanguageHaskell2010

Data.Niagra.Properties.Units

Contents

Synopsis

Types

data Operation Source

Constructors

OpAdd 
OpSub 
OpDiv 
OpMul 

Calculations

Units

Absolute Units

px :: Integer -> Builder Source

Measured in pixels.

cm :: Integer -> Builder Source

Measured in centimeters.

mm :: Integer -> Builder Source

Measured in millimeters.

inch :: Integer -> Builder Source

Measured in inches.

pt :: Integer -> Builder Source

Measured in points.

pc :: Integer -> Builder Source

Measured in picas.

unitless :: Integer -> Builder Source

Measured without units.

Relative Units

em :: Integer -> Builder Source

Measured relative to element's font-size.

ex :: Integer -> Builder Source

Measured relative to the x-height of the current font.

ch :: Integer -> Builder Source

Measured relative to width of the "0".

rem :: Integer -> Builder Source

Measured relative to font-size of the root element.

vw :: Integer -> Builder Source

Measured relative to 1% of the width of the viewport.

vh :: Integer -> Builder Source

Measured relative to 1% of the height of the viewport.

vmin :: Integer -> Builder Source

Measured relative to 1% of viewport's smaller dimension.

vmax :: Integer -> Builder Source

Measured relative to 1% of viewport's larger dimension.

perc :: Integer -> Builder Source

Measured by percent.

auto :: Builder Source

CSS auto.