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

MaintainerErtugrul Soeylemez <es@ertes.de>
Safe HaskellNone

Data.CSS.Properties.Types

Contents

Description

 

Synopsis

Lengths

data Length a Source

Length transformer to add lengths in various CSS units.

Instances

Typeable1 Length 
HasLength Length 
Eq a => Eq (Length a) 
Ord a => Ord (Length a) 
Show a => Show (Length a) 
Real a => ToPropValue (Length a) 

data AutoLen len a Source

Length transformer to add automatic lengths.

Instances

HasPercent len => HasPercent (AutoLen len) 
HasLength len => HasLength (AutoLen len) 
HasAutoLength (AutoLen len) 
Eq (len a) => Eq (AutoLen len a) 
Ord (len a) => Ord (AutoLen len a) 
Show (len a) => Show (AutoLen len a) 
ToPropValue (len a) => ToPropValue (AutoLen len a) 

data FactorLen len a Source

Length transformer to add percental lengths.

Instances

HasPercent (FactorLen len) 
HasLength len => HasLength (FactorLen len) 
HasAutoLength len => HasAutoLength (FactorLen len) 
(Eq a, Eq (len a)) => Eq (FactorLen len a) 
(Ord a, Ord (len a)) => Ord (FactorLen len a) 
(Show a, Show (len a)) => Show (FactorLen len a) 
(Real a, ToPropValue (len a)) => ToPropValue (FactorLen len a) 

Generic CSS types

newtype CssUrl a Source

CSS URLs.

Constructors

CssUrl 

Fields

getCssUrl :: a
 

Edge-oriented

data Edge a Source

Edge-oriented specifications.

Constructors

Edges [a]

All edges.

BottomEdge a

Bottom edge.

LeftEdge a

Left edge.

RightEdge a

Right edge.

TopEdge a

Top edge.

Instances

Functor Edge 
Typeable1 Edge 
Foldable Edge 
Traversable Edge 
Eq a => Eq (Edge a) 
Data a => Data (Edge a) 
Ord a => Ord (Edge a) 
Read a => Read (Edge a) 
Show a => Show (Edge a) 

Specific properties

Backgrounds

Borders

data BorderWidth a Source

Border widths.

Constructors

BorderWidth (Length a)

Custom border width.

MediumWidth

Medium border width.

ThickWidth

Thick border width.

ThinWidth

Thin border width.

Fonts

data FontFamily Source

Font families.

Constructors

CursiveFont

Generic cursive font.

FantasyFont

Generic fantasy font.

MonospaceFont

Generic monospace font.

SansSerifFont

Generic sans-serif font.

SerifFont

Generic serif font.

NamedFont (CssString Text)

Specific named font.

data FontSize a Source

Font sizes.

Constructors

XXSmallSize

Absolutely xx-small size.

XSmallSize

Absolutely x-small size.

SmallSize

Absolutely small size.

MediumSize

Absolutely medium size.

LargeSize

Absolutely large size.

XLargeSize

Absolutely x-large size.

XXLargeSize

Absolutely xx-large size.

LargerSize

Relatively larger size.

SmallerSize

Relatively smaller size.

LengthSize (FactorLen Length a)

Specific font size.

data FontStyle Source

Font styles.

Constructors

ItalicStyle

Select italic style.

ObliqueStyle

Select oblique style.

NormalStyle

Select normal style.

data FontVariant Source

Font variants.

Constructors

NormalVariant

Select normal font.

SmallCapsVariant

Select small-caps font.

data FontWeight Source

Font weight.

Constructors

BolderWeight

Relatively bolder font weight.

LighterWeight

Relatively lighter font weight.

FontWeight Int

Specific font weight (1-9), 4 = normal, 7 = bold.

Generated content

data ContentPart url Source

Parts for the content property.

Constructors

AttrPart ByteString

attr(x) part.

CloseQuotePart

close-quote part.

CounterPart ByteString (Maybe ListStyle)

counter(x, y) part.

CountersPart ByteString Text (Maybe ListStyle)

counters(x, y) part.

NoCloseQuotePart

no-close-quote part.

NoOpenQuotePart

no-open-quote part.

OpenQuotePart

open-quote part.

TextPart (CssString Text)

Text part.

UriPart url

url(x) part.

Instances

Layout

data ClipMode a Source

Clipping modes.

Constructors

ClipRect (AutoLen Length a) (AutoLen Length a) (AutoLen Length a) (AutoLen Length a)

Rectangular clipping region.

Instances

Typeable1 ClipMode 
Eq a => Eq (ClipMode a) 
Ord a => Ord (ClipMode a) 
Show a => Show (ClipMode a) 
Real a => ToPropValue (ClipMode a) 

data DisplayMode Source

Display modes.

Constructors

BlockDisplay

block display.

InlineBlockDisplay

inline-block display.

InlineDisplay

inline display.

ListItemDisplay

list-item display

NoneDisplay

none display.

TableDisplay

table display.

InlineTableDisplay

inline-table display.

TableRowGroupDisplay

table-row-group display.

TableColumnDisplay

table-column display.

TableColumnGroupDisplay

table-column-group display.

TableHeaderGroupDisplay

table-header-group display.

TableFooterGroupDisplay

table-footer-group display.

TableRowDisplay

table-row display.

TableCellDisplay

table-cell display.

TableCaptionDisplay

table-caption display.

data OverflowMode Source

Overflow handling mode.

Constructors

AutoOverflow

auto overflow handling.

HiddenOverflow

hidden overflow handling.

ScrollOverflow

scroll overflow handling.

VisibleOverflow

visible overflow handling.

data PositionMode Source

Position modes.

Constructors

AbsolutePos

absolute positioning.

FixedPos

fixed positioning.

RelativePos

relative positioning.

StaticPos

static positioning.

Lists

data ListPosition Source

List number/bullet position.

Constructors

InsideList

inside the box.

OutsideList

outside of the box.

data ListStyle Source

List number/bullet styles.

Constructors

ArmenianList

armenian numbering.

CircleList

circle bullets.

DecimalLeadingZeroList

decimal-leading-zero numbering.

DecimalList

decimal numbering.

DiscList

disc bullets.

GeorgianList

georgian numbering.

LowerAlphaList

lower-alpha numbering.

LowerGreekList

lower-greek numbering.

LowerLatinList

lower-latin numbering.

LowerRomanList

lower-roman numbering.

SquareList

square bullets.

UpperAlphaList

upper-alpha numbering.

UpperLatinList

upper-latin numbering.

UpperRomanList

upper-roman numbering.

Paged media

data AnyBreak Source

Page break context: any.

data InsideBreak Source

Page break context: page-break-inside.

data PageSelector Source

Page selectors for paged media.

Constructors

AllPages

Select all pages (@page).

FirstPage

Select first page (@page :first).

LeftPages

Select all left pages (@page :left).

RightPages

Select all right pages (@page :right).

Tables

data CaptionSide Source

Table caption sides.

Constructors

BottomSide

Table's bottom side.

TopSide

Table's top side.

Text

data TextAlign Source

Text alignment.

Constructors

CenterAlign

center alignment.

JustifyAlign

justify alignment.

LeftAlign

left alignment.

RightAlign

right alignment.

data TextTransform Source

Text transformation modes.

Constructors

CapitalizeText

capitalize transform.

LowercaseText

lowercase transform.

UppercaseText

uppercase transform.

data TextWrapMode Source

Text wrapping modes.

Constructors

NormalWrapping

normal wrapping.

NowrapWrapping

nowrap wrapping.

PreLineWrapping

pre-line wrapping.

PreWrapWrapping

pre-wrap wrapping.

PreWrapping

pre wrapping.

User interface

data Cursor url Source

Cursors.

Constructors

CrosshairCursor

crosshair cursor.

CursorFrom [url]

Cursor from one of the given URLs.

DefaultCursor

default cursor.

EResizeCursor

e-resize cursor.

HelpCursor

help cursor.

MoveCursor

move cursor.

NResizeCursor

n-resize cursor.

NeResizeCursor

ne-resize cursor.

NwResizeCursor

nw-resize cursor.

PointerCursor

pointer cursor.

ProgressCursor

progress cursor.

SResizeCursor

s-resize cursor.

SeResizeCursor

se-resize cursor.

SwResizeCursor

sw-resize cursor.

TextCursor

text cursor.

WResizeCursor

w-resize cursor.

WaitCursor

wait cursor.

Instances

Functor Cursor 
Typeable1 Cursor 
Foldable Cursor 
Traversable Cursor 
Eq url => Eq (Cursor url) 
Data url => Data (Cursor url) 
Ord url => Ord (Cursor url) 
Read url => Read (Cursor url) 
Show url => Show (Cursor url) 
ToPropValue url => ToPropValue (Cursor url)