clay-0.15.0: CSS preprocessor as embedded Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Clay.Size

Synopsis

Size type.

data Size a Source #

Instances

Instances details
Num (Size LengthUnit) Source # 
Instance details

Defined in Clay.Size

Num (Size Percentage) Source # 
Instance details

Defined in Clay.Size

Fractional (Size LengthUnit) Source # 
Instance details

Defined in Clay.Size

Fractional (Size Percentage) 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 #

Loc (Size a) Source # 
Instance details

Defined in Clay.Background

Methods

location :: Size a -> Location Source #

Auto (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

auto :: Size a Source #

Inherit (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

inherit :: Size a Source #

None (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

none :: Size a Source #

Normal (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

normal :: Size a Source #

Other (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

other :: Value -> Size a Source #

VerticalAlign (Size a) Source # 
Instance details

Defined in Clay.Display

Methods

verticalAlign :: Size a -> Css Source #

Val (Size a) Source # 
Instance details

Defined in Clay.Size

Methods

value :: Size a -> Value Source #

nil :: Size a Source #

Zero size.

unitless :: Number -> Size a Source #

Unitless size (as recommended for line-height).

Size constructors.

cm :: Number -> Size LengthUnit Source #

Size in centimeters.

mm :: Number -> Size LengthUnit Source #

Size in millimeters.

inches :: Number -> Size LengthUnit Source #

Size in inches (1in = 2.54 cm).

px :: Number -> Size LengthUnit Source #

Size in pixels.

pt :: Number -> Size LengthUnit Source #

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

pc :: Number -> Size LengthUnit Source #

Size in picas (1pc = 12pt).

em :: Number -> Size LengthUnit Source #

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

ex :: Number -> Size LengthUnit Source #

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

ch :: Number -> Size LengthUnit Source #

SimpleSize in ch's (The width of the glyph "0" of the element's font).

pct :: Number -> Size Percentage Source #

SimpleSize in percents.

rem :: Number -> Size LengthUnit Source #

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

lh :: Number -> Size LengthUnit Source #

SimpleSize in lh's (Line height of the element).

rlh :: Number -> Size LengthUnit Source #

SimpleSize in rlh's (lh's, but always relative to the root element).

vw :: Number -> Size LengthUnit Source #

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

vh :: Number -> Size LengthUnit Source #

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

vmin :: Number -> Size LengthUnit Source #

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

vmax :: Number -> Size LengthUnit Source #

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

vb :: Number -> Size LengthUnit Source #

SimpleSize in vb's (1vb = 1% of the parent's size in the direction of the root element's block axis).

vi :: Number -> Size LengthUnit Source #

SimpleSize in vi's (1vi = 1% of the parent's size in the direction of the root element's inline axis).

svw :: Number -> Size LengthUnit Source #

SimpleSize in svw's (1svw = 1% of the small viewport's width).

svh :: Number -> Size LengthUnit Source #

SimpleSize in svh's (1svh = 1% of the small viewport's height).

lvw :: Number -> Size LengthUnit Source #

SimpleSize in lvw's (1lvw = 1% of the large viewport's width).

lvh :: Number -> Size LengthUnit Source #

SimpleSize in lvh's (1lvh = 1% of the large viewport's height).

dvw :: Number -> Size LengthUnit Source #

SimpleSize in dvw's (1dvw = 1% of the dynamic viewport's width).

dvh :: Number -> Size LengthUnit Source #

SimpleSize in dvh's (1dvh = 1% of the dynamic viewport's height).

fr :: Number -> 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 -> Number -> Size a infixl 7 Source #

Reversed times operator to combine sizes into calc function

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

Times operator to combine sizes into calc function

(@/) :: Size a -> Number -> 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
Num (Angle Deg) 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 Turn) Source # 
Instance details

Defined in Clay.Size

Fractional (Angle Deg) 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 Turn) Source # 
Instance details

Defined in Clay.Size

Auto (Angle a) Source # 
Instance details

Defined in Clay.Size

Methods

auto :: Angle a Source #

Inherit (Angle a) Source # 
Instance details

Defined in Clay.Size

Methods

inherit :: Angle a Source #

Other (Angle a) Source # 
Instance details

Defined in Clay.Size

Methods

other :: Value -> Angle a Source #

Val (Angle a) Source # 
Instance details

Defined in Clay.Size

Methods

value :: Angle a -> Value Source #

data Deg Source #

Instances

Instances details
Num (Angle Deg) Source # 
Instance details

Defined in Clay.Size

Fractional (Angle Deg) Source # 
Instance details

Defined in Clay.Size

data Rad Source #

Instances

Instances details
Num (Angle Rad) Source # 
Instance details

Defined in Clay.Size

Fractional (Angle Rad) Source # 
Instance details

Defined in Clay.Size

data Grad Source #

Instances

Instances details
Num (Angle Grad) Source # 
Instance details

Defined in Clay.Size

Fractional (Angle Grad) Source # 
Instance details

Defined in Clay.Size

data Turn Source #

Instances

Instances details
Num (Angle Turn) Source # 
Instance details

Defined in Clay.Size

Fractional (Angle Turn) Source # 
Instance details

Defined in Clay.Size

Constructing angles.

deg :: Number -> Angle Deg Source #

Angle in degrees.

rad :: Number -> Angle Rad Source #

Angle in radians.

grad :: Number -> Angle Grad Source #

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

turn :: Number -> Angle Turn Source #

Angle in turns.