Maintainer | Ertugrul Soeylemez <es@ertes.de> |
---|---|
Safe Haskell | None |
- class HasLength len where
- _Cm :: (Fractional a, Real a) => Prism' (len a) a
- _Em :: (Fractional a, Real a) => Prism' (len a) a
- _Ex :: (Fractional a, Real a) => Prism' (len a) a
- _In :: (Fractional a, Real a) => Prism' (len a) a
- _Mm :: (Fractional a, Real a) => Prism' (len a) a
- _Pc :: (Fractional a, Real a) => Prism' (len a) a
- _Pt :: (Fractional a, Real a) => Prism' (len a) a
- _Px :: (Fractional a, Real a) => Prism' (len a) a
- zeroLen :: len a
- class HasAutoLength len where
- autoLen :: len a
- class HasPercent len where
- _Factor :: (Fractional a, Real a) => Prism' (len a) a
- _Percent :: (Fractional a, Real a) => Prism' (len a) a
Length prisms
class HasLength len whereSource
Class of types, which feature CSS lengths.
_Cm :: (Fractional a, Real a) => Prism' (len a) aSource
_Em :: (Fractional a, Real a) => Prism' (len a) aSource
Length
in units of the font size (em
).
_Ex :: (Fractional a, Real a) => Prism' (len a) aSource
Length
in units of the height of the x
character in the
current font (ex
).
_In :: (Fractional a, Real a) => Prism' (len a) aSource
_Mm :: (Fractional a, Real a) => Prism' (len a) aSource
_Pc :: (Fractional a, Real a) => Prism' (len a) aSource
_Pt :: (Fractional a, Real a) => Prism' (len a) aSource
_Px :: (Fractional a, Real a) => Prism' (len a) aSource
Length
in pixels (px
).
Zero length.
class HasAutoLength len whereSource
Class for length types with a notion of automatic length.
HasAutoLength len => HasAutoLength (FactorLen len) | |
HasAutoLength (AutoLen len) |
class HasPercent len whereSource
Class for length types with percentages.
Minimal complete definition: _Factor
.
_Factor :: (Fractional a, Real a) => Prism' (len a) aSource
Relative Length
by factor where 1 means 100% (%
).
Compatible with _Percent
.
_Percent :: (Fractional a, Real a) => Prism' (len a) aSource
Relative Length
in percent (%
). Compatible with _Factor
.
HasPercent VerticalAlign | |
HasPercent FontSize | |
HasPercent (FactorLen len) | |
HasPercent len => HasPercent (AutoLen len) |