Safe Haskell | None |
---|
Clay.Size
Contents
- data Size a
- data Abs
- data Rel
- nil :: Size a
- px :: Integer -> Size Abs
- pt :: Double -> Size Abs
- em :: Double -> Size Abs
- ex :: Double -> Size Abs
- pct :: Double -> Size Rel
- sym :: (Size a -> Size a -> Size a -> Size a -> Css) -> Size a -> Css
- sym2 :: (Size a -> Size a -> Size a -> Size a -> Css) -> Size a -> Size a -> Css
- sym3 :: (Size a -> Size a -> Size a -> Size a -> Css) -> Size a -> Size a -> Size a -> Css
- data Angle a
- data Deg
- data Rad
- deg :: Double -> Angle Deg
- rad :: Double -> Angle Rad
Size type.
Sizes can be absolute like pixels, points, etc.
Sizes can be relative like percentages.