Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- data Size a
- data LengthUnit
- data Percentage
- nil :: Size a
- unitless :: Double -> Size a
- cm :: Double -> Size LengthUnit
- mm :: Double -> Size LengthUnit
- inches :: Double -> Size LengthUnit
- px :: Double -> Size LengthUnit
- pt :: Double -> Size LengthUnit
- pc :: Double -> Size LengthUnit
- em :: Double -> Size LengthUnit
- ex :: Double -> Size LengthUnit
- pct :: Double -> Size Percentage
- rem :: Double -> Size LengthUnit
- vw :: Double -> Size LengthUnit
- vh :: Double -> Size LengthUnit
- vmin :: Double -> Size LengthUnit
- vmax :: Double -> Size LengthUnit
- (@+@) :: Size a -> Size b -> Size (SizeCombination a b)
- (@-@) :: Size a -> Size b -> Size (SizeCombination a b)
- (@*) :: Size a -> Double -> Size a
- (*@) :: Double -> Size a -> Size a
- (@/) :: Size a -> Double -> Size a
- sym :: (a -> a -> a -> a -> Css) -> a -> Css
- sym2 :: (a -> a -> a -> a -> Css) -> a -> a -> Css
- sym3 :: (a -> a -> a -> a -> Css) -> a -> a -> a -> Css
- data Angle a
- data Deg
- data Rad
- data Grad
- data Turn
- deg :: Double -> Angle Deg
- rad :: Double -> Angle Rad
- grad :: Double -> Angle Grad
- turn :: Double -> Angle Turn
Size type.
Instances
data LengthUnit Source #
Sizes can be given using a length unit (e.g. em, px).
Instances
Fractional (Size LengthUnit) Source # | |
Defined in Clay.Size (/) :: Size LengthUnit -> Size LengthUnit -> Size LengthUnit # recip :: Size LengthUnit -> Size LengthUnit # fromRational :: Rational -> Size LengthUnit # | |
Num (Size LengthUnit) Source # | |
Defined in Clay.Size (+) :: Size LengthUnit -> Size LengthUnit -> Size LengthUnit # (-) :: Size LengthUnit -> Size LengthUnit -> Size LengthUnit # (*) :: Size LengthUnit -> Size LengthUnit -> Size LengthUnit # negate :: Size LengthUnit -> Size LengthUnit # abs :: Size LengthUnit -> Size LengthUnit # signum :: Size LengthUnit -> Size LengthUnit # fromInteger :: Integer -> Size LengthUnit # |
data Percentage Source #
Sizes can be given in percentages.
Instances
Fractional (Size Percentage) Source # | |
Defined in Clay.Size (/) :: Size Percentage -> Size Percentage -> Size Percentage # recip :: Size Percentage -> Size Percentage # fromRational :: Rational -> Size Percentage # | |
Num (Size Percentage) Source # | |
Defined in Clay.Size (+) :: Size Percentage -> Size Percentage -> Size Percentage # (-) :: Size Percentage -> Size Percentage -> Size Percentage # (*) :: Size Percentage -> Size Percentage -> Size Percentage # negate :: Size Percentage -> Size Percentage # abs :: Size Percentage -> Size Percentage # signum :: Size Percentage -> Size Percentage # fromInteger :: Integer -> Size Percentage # |
Size constructors.
rem :: Double -> Size LengthUnit Source #
SimpleSize in rem's (em's, but always relative to the root element).
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.
Angle type.
Instances
Fractional (Angle Turn) Source # | |
Fractional (Angle Grad) Source # | |
Fractional (Angle Rad) Source # | |
Fractional (Angle Deg) Source # | |
Num (Angle Turn) Source # | |
Defined in Clay.Size | |
Num (Angle Grad) Source # | |
Defined in Clay.Size | |
Num (Angle Rad) Source # | |
Num (Angle Deg) Source # | |
Val (Angle a) Source # | |
Other (Angle a) Source # | |
Inherit (Angle a) Source # | |
Auto (Angle a) Source # | |