clay-0.14.0: CSS preprocessor as embedded Haskell.
Safe HaskellNone
LanguageHaskell2010

Clay.Size

Synopsis

Size type.

data Size a Source #

Instances

Instances details
Fractional (Size Percentage) Source # 
Instance details

Defined in Clay.Size

Fractional (Size LengthUnit) Source # 
Instance details

Defined in Clay.Size

Num (Size Percentage) Source # 
Instance details

Defined in Clay.Size

Num (Size LengthUnit) Source # 
Instance details

Defined in Clay.Size

Show (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

showsPrec :: Int -> Size a -> ShowS #

show :: Size a -> String #

showList :: [Size a] -> ShowS #

Val (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

value :: Size a -> Value Source #

Other (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

other :: Value -> Size a Source #

Normal (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

normal :: Size a Source #

None (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

none :: Size a Source #

Inherit (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

inherit :: Size a Source #

Auto (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

auto :: Size a Source #

VerticalAlign (Size a) Source # 
Instance details

Defined in Clay.Display

Methods

verticalAlign :: Size a -> Css Source #

Loc (Size a) Source # 
Instance details

Defined in Clay.Background

Methods

location :: Size a -> Location Source #

nil :: Size a Source #

Zero size.

unitless :: Double -> Size a Source #

Unitless size (as recommended for line-height).

Size constructors.

cm :: Double -> Size LengthUnit Source #

Size in centimeters.

mm :: Double -> Size LengthUnit Source #

Size in millimeters.

inches :: Double -> Size LengthUnit Source #

Size in inches (1in = 2.54 cm).

px :: Double -> Size LengthUnit Source #

Size in pixels.

pt :: Double -> Size LengthUnit Source #

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

pc :: Double -> Size LengthUnit Source #

Size in picas (1pc = 12pt).

em :: Double -> Size LengthUnit Source #

Size in em's (computed cssDoubleText of the font-size).

ex :: Double -> Size LengthUnit Source #

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

pct :: Double -> Size Percentage Source #

SimpleSize in percents.

rem :: Double -> Size LengthUnit Source #

SimpleSize in rem's (em's, but always relative to the root element).

vw :: Double -> Size LengthUnit Source #

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

vh :: Double -> Size LengthUnit Source #

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

vmin :: Double -> Size LengthUnit Source #

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

vmax :: Double -> Size LengthUnit Source #

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

fr :: Double -> Size LengthUnit Source #

SimpleSize in fr's (a fractional unit and 1fr is for 1 part of the available space in grid areas).

maxContent :: Size LengthUnit Source #

SimpleSize for the intrinsic preferred width.

minContent :: Size LengthUnit Source #

SimpleSize for the intrinsic minimum width.

available :: Size LengthUnit Source #

SimpleSize for the containing block width minus horizontal margin, border, and padding.

fitContent :: Size LengthUnit Source #

The larger of the intrinsic minimum width or the smaller of the intrinsic preferred width and the available width.

Calculation operators for calc

(@+@) :: Size a -> Size b -> Size (SizeCombination a b) infixl 6 Source #

Plus operator to combine sizes into calc function

(@-@) :: Size a -> Size b -> Size (SizeCombination a b) infixl 6 Source #

Minus operator to combine sizes into calc function

(@*) :: Size a -> Double -> Size a infixl 7 Source #

Reversed times operator to combine sizes into calc function

(*@) :: Double -> Size a -> Size a infixl 7 Source #

Times operator to combine sizes into calc function

(@/) :: Size a -> Double -> Size a infixl 7 Source #

Division operator to combine sizes into calc function

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

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

sym2 :: (tb -> lr -> tb -> lr -> Css) -> tb -> lr -> Css Source #

sym3 :: (tb -> l -> tb -> r -> Css) -> tb -> l -> r -> Css Source #

Angle type.

data Angle a Source #

Instances

Instances details
Fractional (Angle Turn) Source # 
Instance details

Defined in Clay.Size

Fractional (Angle Grad) Source # 
Instance details

Defined in Clay.Size

Fractional (Angle Rad) Source # 
Instance details

Defined in Clay.Size

Fractional (Angle Deg) Source # 
Instance details

Defined in Clay.Size

Num (Angle Turn) Source # 
Instance details

Defined in Clay.Size

Num (Angle Grad) Source # 
Instance details

Defined in Clay.Size

Num (Angle Rad) Source # 
Instance details

Defined in Clay.Size

Num (Angle Deg) Source # 
Instance details

Defined in Clay.Size

Val (Angle a) Source # 
Instance details

Defined in Clay.Size

Methods

value :: Angle a -> Value Source #

Other (Angle a) Source # 
Instance details

Defined in Clay.Size

Methods

other :: Value -> Angle a Source #

Inherit (Angle a) Source # 
Instance details

Defined in Clay.Size

Methods

inherit :: Angle a Source #

Auto (Angle a) Source # 
Instance details

Defined in Clay.Size

Methods

auto :: Angle a Source #

data Deg Source #

Instances

Instances details
Fractional (Angle Deg) Source # 
Instance details

Defined in Clay.Size

Num (Angle Deg) Source # 
Instance details

Defined in Clay.Size

data Rad Source #

Instances

Instances details
Fractional (Angle Rad) Source # 
Instance details

Defined in Clay.Size

Num (Angle Rad) Source # 
Instance details

Defined in Clay.Size

data Grad Source #

Instances

Instances details
Fractional (Angle Grad) Source # 
Instance details

Defined in Clay.Size

Num (Angle Grad) Source # 
Instance details

Defined in Clay.Size

data Turn Source #

Instances

Instances details
Fractional (Angle Turn) Source # 
Instance details

Defined in Clay.Size

Num (Angle Turn) Source # 
Instance details

Defined in Clay.Size

Constructing angles.

deg :: Double -> Angle Deg Source #

Angle in degrees.

rad :: Double -> Angle Rad Source #

Angle in radians.

grad :: Double -> Angle Grad Source #

Angle in gradians (also knows as gons or grades).

turn :: Double -> Angle Turn Source #

Angle in turns.