cascading-0.1.0: DSL for HTML CSS (Cascading Style Sheets)

MaintainerErtugrul Soeylemez <es@ertes.de>
Safe HaskellNone

Data.CSS.Properties.Classes

Contents

Description

 

Synopsis

Length prisms

class HasLength len whereSource

Class of types, which feature CSS lengths.

Minimal complete definition: _Em, _Ex, _Mm, _Px, zeroLen.

Methods

_Cm :: (Fractional a, Real a) => Prism' (len a) aSource

Length in centimeters (cm). Compatible with _In, _Mm, _Pc and _Pt.

_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

Length in inches (in). Compatible with _Cm, _Mm, _Pc and _Pt.

_Mm :: (Fractional a, Real a) => Prism' (len a) aSource

Length in millimeters (mm). Compatible with _Cm, _In, _Pc and _Pt.

_Pc :: (Fractional a, Real a) => Prism' (len a) aSource

Length in picas (pc). Compatible with _Cm, _In, _Mm and _Pt.

_Pt :: (Fractional a, Real a) => Prism' (len a) aSource

Length in points (pt). Compatible with _Cm, _In, _Mm and _Pc.

_Px :: (Fractional a, Real a) => Prism' (len a) aSource

Length in pixels (px).

zeroLen :: len aSource

Zero length.

class HasAutoLength len whereSource

Class for length types with a notion of automatic length.

Methods

autoLen :: len aSource

Automatic length.

class HasPercent len whereSource

Class for length types with percentages.

Minimal complete definition: _Factor.

Methods

_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.